busybox/shell/ash_test/ash-vars/var_unbackslash1.tests
Denys Vlasenko 7a24e8ffeb shell testsuite: add trailing newline to var_unbackslash1.tests
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2016-09-29 20:02:53 +02:00

36 lines
241 B
Plaintext
Executable File

ad="Ok"
a="Ba"
# "Ok"
echo $a\
d
# This variable contains backslash+newline!
e='echo $a\
d'
# "Ba d"
eval $e
# "Ok"
eval "$e"
echo $\
(echo Ok\
)
echo "$\
(echo Ok\
)"
echo Forty two:$\
(\
(\
42\
)\
)
echo "Forty two:$\
(\
(\
42\
)\
)"