diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-23 01:52:30 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-23 01:52:30 +0000 |
commit | ef527f50e62ee8c0c9f34e8c1ab0489f6b0b1293 (patch) | |
tree | abbc6ba5df130e8ca3ff2cd927126e5729b463f3 /shell/ash_test | |
parent | a80d0e4bf708fa77852197d07a9de96a9d30295e (diff) | |
download | busybox-w32-ef527f50e62ee8c0c9f34e8c1ab0489f6b0b1293.tar.gz busybox-w32-ef527f50e62ee8c0c9f34e8c1ab0489f6b0b1293.tar.bz2 busybox-w32-ef527f50e62ee8c0c9f34e8c1ab0489f6b0b1293.zip |
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
Diffstat (limited to 'shell/ash_test')
-rw-r--r-- | shell/ash_test/ash-quoting/dollar_squote_bash1.right | 9 | ||||
-rwxr-xr-x | shell/ash_test/ash-quoting/dollar_squote_bash1.tests | 7 |
2 files changed, 16 insertions, 0 deletions
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 000000000..57536b1d9 --- /dev/null +++ b/shell/ash_test/ash-quoting/dollar_squote_bash1.right | |||
@@ -0,0 +1,9 @@ | |||
1 | a b | ||
2 | a | ||
3 | b c | ||
4 | def | ||
5 | a'b c"d e\f | ||
6 | a3b c3b e33f | ||
7 | a\80b c08b | ||
8 | a3b c30b | ||
9 | 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 000000000..93a56cac3 --- /dev/null +++ b/shell/ash_test/ash-quoting/dollar_squote_bash1.tests | |||
@@ -0,0 +1,7 @@ | |||
1 | echo $'a\tb' | ||
2 | echo $'a\nb' $'c\nd''ef' | ||
3 | echo $'a\'b' $'c\"d' $'e\\f' | ||
4 | echo $'a\63b' $'c\063b' $'e\0633f' | ||
5 | echo $'a\80b' $'c\608b' | ||
6 | echo $'a\x33b' $'c\x330b' | ||
7 | echo $'x\x9y' | ||