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:
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
[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
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