Bug#837789: dash does not obey POSIX quoting rules with single quote in substring-processing expansions

2018-09-04 Thread Andrej Shadura
On Wed, 14 Sep 2016 17:53:06 +0200 Vincent Lefevre wrote: > 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: >

Bug#837789: dash does not obey POSIX quoting rules with single quote in substring-processing expansions

2016-09-14 Thread Vincent Lefevre
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