hush: make getch/peek functions directly called
[oweals/busybox.git] / shell / hush_test / hush-psubst / tick3.tests
index 97b45e4b425db03f640635dedaec9fe7864d1377..3aeb241c391eb77486c734f94455d884bd738594 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/sh
+test "$CONFIG_FEATURE_FANCY_ECHO" = "y" || exit 77
+
 TEST=Q
 # \` is special
 echo `echo '\'TEST\`echo ZZ\`BEST`
@@ -6,6 +7,8 @@ echo `echo '\'TEST\`echo ZZ\`BEST`
 echo `echo \\$TEST`
 echo `echo \$TEST`
 echo a`echo \\\\b`c
-# \" etc are NOT special (passed verbatim WITH \)!
-echo a`echo \"`c
+
+# \" is not special if in unquoted `cmd` (passed verbatim WITH \),
+# but is special in quoted one
+echo `echo 11'-$a-\t-\\-\"-\`-\--\z-\*-\?-'22` "`echo 33'-$a-\t-\\-\"-\`-\--\z-\*-\?-'44`"
 echo done:$?