bug-bash
[Top][All Lists]
Advanced

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

bash-4.0 regression with comments in subshelled case


From: Mike Frysinger
Subject: bash-4.0 regression with comments in subshelled case
Date: Tue, 3 Mar 2009 01:22:55 -0500
User-agent: KMail/1.11.0 (Linux/2.6.28; KDE/4.2.0; x86_64; ; )

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

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