blob: bb52af3d0af330c03842c59746d517c744c121d2 [file] [log] [blame]
Denys Vlasenko82865132016-09-29 16:59:06 +02001# Test for correct handling of backslashes
2a=qwerty
3
4b=-$a-\t-\\-\"-\`-\--\z-\*-\?-
5echo b1=$b
6echo "b1=$b"
7b="-$a-\t-\\-\"-\`-\--\z-\*-\?-"
8echo b2=$b
9echo "b2=$b"
10b='-$a-\t-\\-\"-\`-\--\z-\*-\?-'
11echo b3=$b
12echo "b3=$b"
13
14c=$b
15echo "c=$c"
16c=${b}
17echo "c=$c"
18c="$b"
19echo "c=$c"
20c="${b}"
21echo "c=$c"
22
23echo "Done: $?"