Re: bash-4.0 regression with comments in subshelled case

2009-03-03 Thread Mike Frysinger
On Tuesday 03 March 2009 17:14:16 Chet Ramey wrote: > Mike Frysinger wrote: > > On Tuesday 03 March 2009 15:28:28 Chet Ramey wrote: > >> Mike Frysinger wrote: > >>> code that uses case statements in a subshell and then uses comments > >>> causes bash to trigger a parsing error: > >>> $ cat test.sh

Re: bash-4.0 regression with comments in subshelled case

2009-03-03 Thread Chet Ramey
Mike Frysinger wrote: > On Tuesday 03 March 2009 15:28:28 Chet Ramey wrote: >> Mike Frysinger wrote: >>> 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 ./t

Re: bash-4.0 regression with comments in subshelled case

2009-03-03 Thread Mike Frysinger
On Tuesday 03 March 2009 15:28:28 Chet Ramey wrote: > Mike Frysinger wrote: > > 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: lin

Re: bash-4.0 regression with comments in subshelled case

2009-03-03 Thread Chet Ramey
Mike Frysinger wrote: > 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: lin