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 the ) to close the
subshell. The right syntax would in this case be to use ([EMAIL PROTECTED]).

In the interest of consistency, I suggest dash also should fail.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (750, 'unstable'), (500, 'testing'), (250, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.17-1-686
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages dash depends on:
ii  libc6                         2.3.6-18   GNU C Library: Shared libraries

dash recommends no packages.

-- debconf-show failed

-- 
Please do not send copies of list mail to me; I read the list!
 
 .''`.     martin f. krafft <[EMAIL PROTECTED]>
: :'  :    proud Debian developer and author: http://debiansystem.info
`. `'`
  `-  Debian - when you have better things to do than fixing a system

Attachment: signature.asc
Description: Digital signature (GPG/PGP)

Reply via email to