Re: Can't declare associative global arrays inside function

2013-09-11 Thread Chet Ramey
On 9/10/13 12:36 PM, Carlos Pita wrote: > Configuration Information [Automatically generated, do not change]: > Machine: i686 > OS: linux-gnu > Compiler: gcc > Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' > -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' > -DCONF_VENDO

Re: Pattern substitution insensitive to case?

2013-09-11 Thread Chet Ramey
On 9/11/13 5:12 AM, Davide Baldini wrote: > Hi, > > Bash doesn't seem to provide a handy way to perform search-and-replace on > strings in a case-insensitive manner. > > The parameter expansion "${parameter/pattern/string}" is not influenced by > the shell options "nocaseglob" and "nocasematch",

Pattern substitution insensitive to case?

2013-09-11 Thread Davide Baldini
Hi, Bash doesn't seem to provide a handy way to perform search-and-replace on strings in a case-insensitive manner. The parameter expansion "${parameter/pattern/string}" is not influenced by the shell options "nocaseglob" and "nocasematch", at least in Bash version 4.2.37. Is this intended?