busybox/shell/ash_test/ash-psubst/tick3.tests
Denys Vlasenko 4a1d8f6d6e ash: add most of hush process subst tests
ash passes these.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2017-07-24 12:49:49 +02:00

15 lines
396 B
Plaintext
Executable File

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:$?