Package: dash
Version: 0.5.8-2.3
Severity: normal

$ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 2016-07-05 23:59:04 /bin/sh -> dash
$ /bin/sh
$ foo=abcdef; echo "${foo#'ab'}"
abcdef

which is incorrect. One should get:

$ foo=abcdef; echo "${foo#'ab'}"
cdef

(like with ksh93, mksh, bash, posh, zsh and yash).

POSIX says:

  The following four varieties of parameter expansion provide for
  substring processing. [...] Enclosing the full parameter expansion
  string in double-quotes shall not cause the following four varieties
  of pattern characters to be quoted, whereas quoting characters
  within the braces shall have this effect.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 
'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.7.0-1-amd64 (SMP w/12 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages dash depends on:
ii  debianutils  4.8
ii  dpkg         1.18.10
ii  libc6        2.24-2

dash recommends no packages.

dash suggests no packages.

-- debconf information:
* dash/sh: true

Reply via email to