Package: dash
Version: 0.5.4-12
Severity: normal

flit:~% cat x1.sh 
echo ${x:- yyy
zzz }
flit:~% bash < x1.sh 
yyy zzz
flit:~% dash < x1.sh
dash: Syntax error: Missing '}'

See http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html
section 2.6.2 Parameter Expansion:

The format for parameter expansion is as follows: ${expression} 
where expression consists of all characters until the matching '}'.

-- System Information:
Debian Release: 5.0.4
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

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

dash recommends no packages.

dash suggests no packages.

-- debconf information excluded



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to