blob: 3c35d7df591f4cddf3a6df1b9572b48d4df6b220 [file] [log] [blame]
Denys Vlasenkoe298ce62010-09-04 19:52:44 +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: $?"