Configuration Information [Automatically generated, do not change]:
Machine: i586
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i586'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i586-pc-linux-gnu'
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -I. -I.
-I./include -I./lib -I/usr/local/include -g -O2
uname output: Linux jreiser 2.2.19-6.2.1 #1 Wed May 9 11:42:48 MDT 2001 i586
unknown
Machine Type: i586-pc-linux-gnu
Bash Version: 2.05
Patch Level: 0
Release Status: release
Description:
Using "case ... esac" inside a $( ... ) collect does not work
because bash-2.05 interprets the ')' of the first 'case' pattern
as the closing parenthesis of the $( ... ) collect.
The shell's parsing is incorrect.
Repeat-By:
----- input to bash-2.05
foo=$(
case $bar in
*/*) echo 1 ;;
*) echo 2 ;;
esac
)
----- bash-2.05 complaint
syntax error near unexpected token `;'
line 3: ` */*) echo 1 ;;'
-----
--
John Reiser, jreiser@BitWagon.com