diff options
author | Denys Vlasenko | 2017-07-24 12:49:49 +0200 |
---|---|---|
committer | Denys Vlasenko | 2017-07-24 12:49:49 +0200 |
commit | 4a1d8f6d6e4e1cafc4c2b611126401bf85812a64 (patch) | |
tree | 8b8c9b4e007ac25337d33883876a51dc0a09aeea /shell/ash_test/ash-psubst/tick3.tests | |
parent | 621fc50e83f7446a060f0b9689dc8dc59ee0743a (diff) | |
download | busybox-4a1d8f6d6e4e1cafc4c2b611126401bf85812a64.zip busybox-4a1d8f6d6e4e1cafc4c2b611126401bf85812a64.tar.gz |
ash: add most of hush process subst tests
ash passes these.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test/ash-psubst/tick3.tests')
-rwxr-xr-x | shell/ash_test/ash-psubst/tick3.tests | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/shell/ash_test/ash-psubst/tick3.tests b/shell/ash_test/ash-psubst/tick3.tests new file mode 100755 index 0000000..3aeb241 --- /dev/null +++ b/shell/ash_test/ash-psubst/tick3.tests @@ -0,0 +1,14 @@ +test "$CONFIG_FEATURE_FANCY_ECHO" = "y" || exit 77 + +TEST=Q +# \` is special +echo `echo '\'TEST\`echo ZZ\`BEST` +# \$ and \\ are special +echo `echo \\$TEST` +echo `echo \$TEST` +echo a`echo \\\\b`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:$? |