Bug#382276: parse problem with $()-style subshell and case

2006-10-23 Thread Gerrit Pape
On Wed, Aug 09, 2006 at 10:45:42PM +0100, martin f krafft wrote: > This is a bug because the following works in dash and it's not > supposed to: > > eval $(while [ -n "${1:-}" ]; do > case "$1" in > [EMAIL PROTECTED]) echo remote="$1";; > esac > shift > done) > > bash and zsh

Bug#382276: parse problem with $()-style subshell and case

2006-10-23 Thread martin f krafft
tags 382276 wontfix thanks also sprach Gerrit Pape <[EMAIL PROTECTED]> [2006.10.23.1811 +0200]: > after all dash parses the code correctly, and I personally think a > decent parser should well be able to identify the first ) not to be the > close bracket for the subshell. I understand that there'

Bug#382276: parse problem with $()-style subshell and case

2006-08-09 Thread martin f krafft
Package: dash Version: 0.5.3-3 Severity: normal This is a bug because the following works in dash and it's not supposed to: eval $(while [ -n "${1:-}" ]; do case "$1" in [EMAIL PROTECTED]) echo remote="$1";; esac shift done) bash and zsh both fail as they correctly identify t