bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

strange interaction between 'nullglob' and 'unset'


From: Alexandre Gerussi
Subject: strange interaction between 'nullglob' and 'unset'
Date: Sat, 10 Jul 2004 23:26:48 +0200

Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H  -I.  -I../bash -I../bash/include 
-I../bash/lib  -g -O2
uname output: Linux Melville 2.4.26-1-k7 #1 Sat May 1 21:40:09 EST 2004 i686 
GNU/Linux
Machine Type: i386-pc-linux-gnu

Bash Version: 2.05b
Patch Level: 0
Release Status: release

Description:
Setting or unsetting the 'nullglob' option seems to interfere with the 'unset' 
command when
used to unset an array's element.

Repeat-By:

toto=(1 2 3)
shopt -s nullglob
unset toto[2]
echo ${toto[*]}
shopt -u nullglob
unset toto[2]
echo ${toto[*]}





reply via email to

[Prev in Thread] Current Thread [Next in Thread]