summaryrefslogtreecommitdiffhomepage
path: root/shell/ash_test/ash-vars/var_unbackslash1.tests
blob: a4665e42367e9d7f0fa5ff84720022e50155f350 (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\
)\
)"