hush/shell/ash_test/ash-vars/var_unbackslash1.tests
Denys Vlasenko 459293b1c5 ash: fix arithmetic closing )) split by backslash-newline
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2016-09-29 17:58:58 +02:00

35 lines
240 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\
)\
)"