ash: bash-compatible $'...' shouldn't expand in double quotes
authorRon Yorston <rmy@pobox.com>
Sun, 3 Apr 2016 21:43:14 +0000 (22:43 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 15 Apr 2016 20:16:46 +0000 (22:16 +0200)
commit84ba50c32f7dbfccddd5c5ca34d48d97c3f72193
treedd2120def41d29e64d3a469edb26ece02f45724b
parent2b91958dff0b7bae83cf2c3f2db55bd248fe0956
ash: bash-compatible $'...' shouldn't expand in double quotes

Bash doesn't expand its $'...' construct in double quotes:

   $ echo "$'a\tb'"
   $'a\tb'

Change BusyBox ash to do the same.  This also fixes a problem with
here documents where BusyBox ash gave an incorrect result for:

   $ cat <<EOF
   > '$'
   > EOF
   '$'

Reported-by: Timo Teras <timo.teras@iki.fi>
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c
shell/ash_test/ash-heredoc/heredoc4.right [new file with mode: 0644]
shell/ash_test/ash-heredoc/heredoc4.tests [new file with mode: 0755]
shell/ash_test/ash-quoting/dollar_squote_bash1.right
shell/ash_test/ash-quoting/dollar_squote_bash1.tests