bash does not jump where it is supposed to jump

2008-01-18 Thread William Tambe
Please read the comments on the code below. I don't know but is it really how bash was supposed to run? The code below should only print end [ "test" = "test" ] && { # after the false command bash should jump directly to echo end # but instead run echo echo "test != test"

"Bad substitution error" is not "well" reported, when invoking and array.

2008-01-18 Thread Andres Sajo
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

Re: premature execution of command substution during tab completion solicitation

2008-01-18 Thread Chet Ramey
jared r r spiegel wrote: Configuration Information [Automatically generated, do not change]: Machine: i386 OS: openbsd4.0 Compiler: cc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' -DCONF_OSTYPE='openbsd4.0' -DCONF_MACHTYPE='i386-unknown-openbsd4.0' -DCONF_VENDOR='unknown' -DLOCA