From ef527f50e62ee8c0c9f34e8c1ab0489f6b0b1293 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 23 Jun 2008 01:52:30 +0000 Subject: ash: optional support for $'...\t...\n...' bashism function old new delta readtoken1 2824 3172 +348 static.C_escapes - 18 +18 parse_command 1504 1500 -4 SIT 89 83 -6 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/2 up/down: 366/-10) Total: 356 bytes --- shell/ash_test/ash-quoting/dollar_squote_bash1.right | 9 +++++++++ shell/ash_test/ash-quoting/dollar_squote_bash1.tests | 7 +++++++ 2 files changed, 16 insertions(+) create mode 100644 shell/ash_test/ash-quoting/dollar_squote_bash1.right create mode 100755 shell/ash_test/ash-quoting/dollar_squote_bash1.tests (limited to 'shell/ash_test') diff --git a/shell/ash_test/ash-quoting/dollar_squote_bash1.right b/shell/ash_test/ash-quoting/dollar_squote_bash1.right new file mode 100644 index 0000000..57536b1 --- /dev/null +++ b/shell/ash_test/ash-quoting/dollar_squote_bash1.right @@ -0,0 +1,9 @@ +a b +a +b c +def +a'b c"d e\f +a3b c3b e33f +a\80b c08b +a3b c30b +x y diff --git a/shell/ash_test/ash-quoting/dollar_squote_bash1.tests b/shell/ash_test/ash-quoting/dollar_squote_bash1.tests new file mode 100755 index 0000000..93a56ca --- /dev/null +++ b/shell/ash_test/ash-quoting/dollar_squote_bash1.tests @@ -0,0 +1,7 @@ +echo $'a\tb' +echo $'a\nb' $'c\nd''ef' +echo $'a\'b' $'c\"d' $'e\\f' +echo $'a\63b' $'c\063b' $'e\0633f' +echo $'a\80b' $'c\608b' +echo $'a\x33b' $'c\x330b' +echo $'x\x9y' -- cgit v1.1