From 87f40bac149dcaf1025abd745decafb3a8ac4e0c Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 10 Jun 2008 22:39:37 +0000 Subject: hush: more backtick and quoting fixes... --- shell/hush_test/hush-psubst/tick3.right | 6 ++++++ shell/hush_test/hush-psubst/tick3.tests | 11 +++++++++++ 2 files changed, 17 insertions(+) create mode 100644 shell/hush_test/hush-psubst/tick3.right create mode 100755 shell/hush_test/hush-psubst/tick3.tests (limited to 'shell/hush_test') diff --git a/shell/hush_test/hush-psubst/tick3.right b/shell/hush_test/hush-psubst/tick3.right new file mode 100644 index 0000000..dc84e92 --- /dev/null +++ b/shell/hush_test/hush-psubst/tick3.right @@ -0,0 +1,6 @@ +\TESTZZBEST +$TEST +Q +a\bc +a"c +done:0 diff --git a/shell/hush_test/hush-psubst/tick3.tests b/shell/hush_test/hush-psubst/tick3.tests new file mode 100755 index 0000000..97b45e4 --- /dev/null +++ b/shell/hush_test/hush-psubst/tick3.tests @@ -0,0 +1,11 @@ +#!/bin/sh +TEST=Q +# \` is special +echo `echo '\'TEST\`echo ZZ\`BEST` +# \$ and \\ are special +echo `echo \\$TEST` +echo `echo \$TEST` +echo a`echo \\\\b`c +# \" etc are NOT special (passed verbatim WITH \)! +echo a`echo \"`c +echo done:$? -- cgit v1.1