Re: unset array[0] doesn't delete the element

2017-03-06 Thread Greg Wooledge
On Sat, Mar 04, 2017 at 09:10:00PM -0800, Isaac Good wrote: > Repeat-By: > $ arr=(1 2 3); unset arr[-1]; echo "${arr[@]}" > 1 2 3 On Sat, Mar 04, 2017 at 09:14:09PM -0800, Isaac Good wrote: > Bug report being withdrawn. I had nullglob set so unset wasn't being > invoked properly. The

Re: unset array[0] doesn't delete the element

2017-03-04 Thread Isaac Good
Bug report being withdrawn. I had nullglob set so unset wasn't being invoked properly. On Sat, Mar 4, 2017 at 9:10 PM, Isaac Good wrote: > Configuration Information [Automatically generated, do not change]: > Machine: i686 > OS: linux-gnu > Compiler: gcc > Compilation CFLAGS: -DPROGRAM='bash' -

unset array[0] doesn't delete the element

2017-03-04 Thread Isaac Good
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