aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test
diff options
context:
space:
mode:
Diffstat (limited to 'shell/hush_test')
-rw-r--r--shell/hush_test/hush-psubst/tick3.right6
-rwxr-xr-xshell/hush_test/hush-psubst/tick3.tests11
2 files changed, 17 insertions, 0 deletions
diff --git a/shell/hush_test/hush-psubst/tick3.right b/shell/hush_test/hush-psubst/tick3.right
new file mode 100644
index 000000000..dc84e9263
--- /dev/null
+++ b/shell/hush_test/hush-psubst/tick3.right
@@ -0,0 +1,6 @@
1\TESTZZBEST
2$TEST
3Q
4a\bc
5a"c
6done:0
diff --git a/shell/hush_test/hush-psubst/tick3.tests b/shell/hush_test/hush-psubst/tick3.tests
new file mode 100755
index 000000000..97b45e4b4
--- /dev/null
+++ b/shell/hush_test/hush-psubst/tick3.tests
@@ -0,0 +1,11 @@
1#!/bin/sh
2TEST=Q
3# \` is special
4echo `echo '\'TEST\`echo ZZ\`BEST`
5# \$ and \\ are special
6echo `echo \\$TEST`
7echo `echo \$TEST`
8echo a`echo \\\\b`c
9# \" etc are NOT special (passed verbatim WITH \)!
10echo a`echo \"`c
11echo done:$?