diff options
author | Denis Vlasenko | 2008-06-12 12:58:20 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-06-12 12:58:20 +0000 |
commit | 76db5adbf70046dec92309a9785da08d1acf4e9d (patch) | |
tree | 17af552a8734448ca55f501e3df8e3e2ac018e00 /shell/hush_test/hush-psubst | |
parent | bd1aeeb850e441e3fa4f9e1f8aedd804a48b9cb1 (diff) | |
download | busybox-76db5adbf70046dec92309a9785da08d1acf4e9d.zip busybox-76db5adbf70046dec92309a9785da08d1acf4e9d.tar.gz |
hush: fix for nested $()s with escapes + testsuite
Diffstat (limited to 'shell/hush_test/hush-psubst')
-rwxr-xr-x | shell/hush_test/hush-psubst/tick3.tests | 1 | ||||
-rw-r--r-- | shell/hush_test/hush-psubst/tick4.right | 7 | ||||
-rwxr-xr-x | shell/hush_test/hush-psubst/tick4.tests | 7 |
3 files changed, 14 insertions, 1 deletions
diff --git a/shell/hush_test/hush-psubst/tick3.tests b/shell/hush_test/hush-psubst/tick3.tests index 97b45e4..2b055bb 100755 --- a/shell/hush_test/hush-psubst/tick3.tests +++ b/shell/hush_test/hush-psubst/tick3.tests @@ -1,4 +1,3 @@ -#!/bin/sh TEST=Q # \` is special echo `echo '\'TEST\`echo ZZ\`BEST` diff --git a/shell/hush_test/hush-psubst/tick4.right b/shell/hush_test/hush-psubst/tick4.right new file mode 100644 index 0000000..d8030ea --- /dev/null +++ b/shell/hush_test/hush-psubst/tick4.right @@ -0,0 +1,7 @@ +(TEST) BEST +TEST) BEST +((TEST) BEST +) +abc +a)c +OK: 0 diff --git a/shell/hush_test/hush-psubst/tick4.tests b/shell/hush_test/hush-psubst/tick4.tests new file mode 100755 index 0000000..f2305fb --- /dev/null +++ b/shell/hush_test/hush-psubst/tick4.tests @@ -0,0 +1,7 @@ +echo $(echo '(TEST)' BEST) +echo $(echo 'TEST)' BEST) +echo $(echo \(\(TEST\) BEST) +echo $(echo \)) +echo $(echo a"`echo "b"`"c ) +echo $(echo a"`echo ")"`"c ) +echo OK: $? |