summaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-vars/var_unbackslash1.tests
blob: cddd8ae5e1ca6422bad3e7881ed5d7c60ec7a5e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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\
)\
)"