Re: extglob features less useful since shell scripts turn them off

2015-01-06 Thread Chet Ramey
On 1/5/15 10:20 PM, Jim Thomas 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: undo local variable with unset

2015-01-06 Thread Chet Ramey
On 1/5/15 3:14 PM, Poor Yorick wrote: > In the following script, the effect of calling f0 is that the value global $i > is still 5, but the effect of calling f1 is that the value of the global $i is > 9. It's nice to be able to create a function like unlocal that moves local > variables out of the

Re: `declare -a NAME` followed by `declare -p NAME`

2015-01-06 Thread Chet Ramey
On 1/4/15 9:31 PM, Ivan Shapovalov wrote: > If an empty array is declared using `declare -a NAME` and then immediately > `declare -p NAME` is invoked, it says there is no such variable. A variable is not set until it is assigned a value. `declare -p name' only finds set variables. > However, th

extglob features less useful since shell scripts turn them off

2015-01-06 Thread Jim Thomas
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_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='ba