Re: How to match pattern in bash?

2011-02-23 Thread Micah Cowan
On 02/23/2011 05:25 AM, Greg Wooledge wrote: > On Tue, Feb 22, 2011 at 08:03:39PM -0800, Micah Cowan wrote: >> Bash's special builtin [[ ]] syntax also provides both wildcards, and >> (much more powerful) extended regexes (roughly similar to Perl regexes; >> they're what egrep uses). > > Just for

Q: interoperability of local vars and option nounset

2011-02-23 Thread Nardmann, Heiko
Hi together, short: is there any way to get informed about unset local variable while having option 'nounset' activated? Long: the problem with 'local' is that variable declared this way are visible inside the children, too. So the behaviour of option 'nounset' depends on the way a function is ca

Re: How to match pattern in bash?

2011-02-23 Thread Greg Wooledge
On Tue, Feb 22, 2011 at 08:03:39PM -0800, Micah Cowan wrote: > Bash's special builtin [[ ]] syntax also provides both wildcards, and > (much more powerful) extended regexes (roughly similar to Perl regexes; > they're what egrep uses). Just for the record, ERE (Extended Regular Expressions), as use