Re: nullglob breaks unset of arrays

2008-09-25 Thread Mario TRENTINI
Hi Chet thanks for your answer, I understand then that unset "my_array[0]" works and therefore quoting the argument is the proper way for using unset. Regards Mario On Wed, Sep 24, 2008 at 11:41:56PM -0400, Chet Ramey wrote: > [EMAIL PROTECTED] wrote: > > > Bash Version: 3.2 > > Patch Level:

Re: nullglob breaks unset of arrays

2008-09-25 Thread Chris F.A. Johnson
On 2008-09-24, [EMAIL PROTECTED] wrote: ... > Description: > When nullglob option is enable (shopt -s nullglob), unset of an array > does not work. > > Repeat-By: > my_array=(1 2 3 4 5 6) > echo "Array [EMAIL PROTECTED]" > shopt -u nullglob > # remove first entry

Re: nullglob breaks unset of arrays

2008-09-24 Thread Chet Ramey
[EMAIL PROTECTED] wrote: > Bash Version: 3.2 > Patch Level: 39 > Release Status: release > > Description: > When nullglob option is enable (shopt -s nullglob), unset of an array > does not work. You're right; it does. `unset' is a builtin, so all of the shell's word expansions are p

nullglob breaks unset of arrays

2008-09-24 Thread mario . trentini_bb
Configuration Information [Automatically generated, do not change]: Machine: i486 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='ba