Re: Bug: 'case' in command substitution not handled correctly

2009-04-16 Thread Bernd Eggink
Chet Ramey schrieb: Bernd Eggink wrote: GNU bash, Version 4.0.17(1)-release (i686-pc-linux-gnu) The shell doesn't recognize the closing parenthesis of a command substitution if a 'case' command is included and 'esac' is preceded by newline. Example: x=$(case $a in (1) echo one esac ) Try t

Re: Bug: 'case' in command substitution not handled correctly

2009-04-15 Thread Chet Ramey
Bernd Eggink wrote: > GNU bash, Version 4.0.17(1)-release (i686-pc-linux-gnu) > > The shell doesn't recognize the closing parenthesis of a command > substitution if a 'case' command is included and 'esac' is preceded by > newline. Example: > > x=$(case $a in >> (1) echo one >> esac >> ) >> > Tr

Bug: 'case' in command substitution not handled correctly

2009-04-15 Thread Bernd Eggink
GNU bash, Version 4.0.17(1)-release (i686-pc-linux-gnu) The shell doesn't recognize the closing parenthesis of a command substitution if a 'case' command is included and 'esac' is preceded by newline. Example: x=$(case $a in > (1) echo one > esac > ) > You can enter as many ')' as you like,