[Bug 10821] ash: bash dollar not expanding inside quoted braced parameter expansion

bugzilla at busybox.net bugzilla at busybox.net
Sun Mar 4 18:36:30 UTC 2018


https://bugs.busybox.net/show_bug.cgi?id=10821

--- Comment #4 from Denys Vlasenko <vda.linux at googlemail.com> ---
(In reply to avih from comment #3)
: pattern in ${param#pattern} should be considered unquoted regardless if the
whole expansion is or isn't quoted

Well, it does not look like it works that way in bash:

$ x='a]'; echo _${x#[a]]}_
__
$ x='a]'; echo _${x#[a\]]}_
_]_
$ x='a]'; echo "_${x#[a]]}_"
__
$ x='a]'; echo "_${x#[a\]]}_"
_]_

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list