code that uses case statements in a subshell and then uses comments causes 
bash to trigger a parsing error:
$ cat test.sh
echo $(case a in (a) echo ok ;; # comment
)
$ sh ./test.sh
./test.sh: line 1: unexpected EOF while looking for matching `)'
./test.sh: line 3: syntax error: unexpected end of file

bash-3.2 consumes this just fine ...
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to