[Bug 10821] ash: bash dollar not expanding inside quoted braced parameter expansion
bugzilla at busybox.net
bugzilla at busybox.net
Sun Mar 4 11:57:09 UTC 2018
https://bugs.busybox.net/show_bug.cgi?id=10821
--- Comment #3 from avih <avihpit at yahoo.com> ---
Not sure if related, but I believe the following commit (before this report):
2018-02-13 8de5b9f ash : fix double-quoted "\z" handling
Broke at least one correct case - the key is that pattern in ${param#pattern}
should be considered unquoted regardless if the whole expansion is or isn't
quoted:
OK before:
(x=\'B; echo "${x#\'}")
B
Bad after:
(x=\'B; echo "${x#\'}")
'B
The following didn't change with 8de5b9f :
OK both before and after:
(x=\'B; echo "${x#"'"}")
B
I believe bad before and after - should error on unterminated string:
(x=\'B; echo "${x#'}")
B
The original report also didn't change - same before/after:
(x=AB; echo "${x#$'\x41'}")
AB
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list