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='bash' -DSHELL -DHAVE_CONFIG_H -I. -I../bash -I../bash/include -I../bash/lib -g -O2 uname output: Linux neutrino 2.6.12.4-bootsplash-mppe-squashfs-skas3-v8.2 #1 Tue Aug 16 00:18:14 CEST 2005 i686 GNU/Linux Machine Type: i486-pc-linux-gnu
Bash Version: 3.1 Patch Level: 11 Release Status: release Description: I've found some of my old scripts result in a syntax error. I don't know if it's an error in the parser, the scripts or the bash options. Repeat-By: This fails in 3.1x but in 3.0x: sh-3.1$ let HI=(16-10)/2 sh: let: /2: syntax error: operand expected (error token is "/2") This works: sh-3.1$ ((HOLA=(16-10)/2)) -- This fails in 3.1x but in 3.0x: sh-3.1$ for i in 1 2 3; do echo ${TOKEN["$i"]}; done sh: "1": syntax error: operand expected (error token is ""1"") This works: sh-3.1$ for i in 1 2 3; do echo ${TOKEN[$i]}; done _______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash