From 84ba50c32f7dbfccddd5c5ca34d48d97c3f72193 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Sun, 3 Apr 2016 22:43:14 +0100 Subject: 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 '$' Reported-by: Timo Teras Signed-off-by: Ron Yorston Signed-off-by: Denys Vlasenko --- shell/ash_test/ash-heredoc/heredoc4.right | 1 + 1 file changed, 1 insertion(+) create mode 100644 shell/ash_test/ash-heredoc/heredoc4.right (limited to 'shell/ash_test/ash-heredoc/heredoc4.right') diff --git a/shell/ash_test/ash-heredoc/heredoc4.right b/shell/ash_test/ash-heredoc/heredoc4.right new file mode 100644 index 0000000..371b092 --- /dev/null +++ b/shell/ash_test/ash-heredoc/heredoc4.right @@ -0,0 +1 @@ +'$' -- cgit v1.1