On 2/13/18 2:53 PM, Denys Vlasenko wrote:
$ >'\zzzz'
$ >'\wwww'
$ dash -c 'echo "\*"'
\wwww \zzzz

There's another case where this goes wrong, that isn't fixed by your, my, or Herbert's patches:

$ dash -c 'a=\\a; echo "${a#\*}"'

$ bash -c 'a=\\a; echo "${a#\*}"'
\a

My patch and Herbert's preserve dash's current behaviour, your patch makes it print a. None of that is correct, the result should be the same as bash.

Cheers,
Harald van Dijk
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to