blob: bb52af3d0af330c03842c59746d517c744c121d2 [file] [log] [blame]
Denys Vlasenkoe298ce62010-09-04 19:52:44 +02001# Test for correct handling of backslashes
2a=qwerty
3
Denys Vlasenko101a4e32010-09-09 14:04:57 +02004b=-$a-\t-\\-\"-\`-\--\z-\*-\?-
Denys Vlasenkoe298ce62010-09-04 19:52:44 +02005echo b1=$b
6echo "b1=$b"
Denys Vlasenko101a4e32010-09-09 14:04:57 +02007b="-$a-\t-\\-\"-\`-\--\z-\*-\?-"
Denys Vlasenkoe298ce62010-09-04 19:52:44 +02008echo b2=$b
9echo "b2=$b"
Denys Vlasenko101a4e32010-09-09 14:04:57 +020010b='-$a-\t-\\-\"-\`-\--\z-\*-\?-'
Denys Vlasenkoe298ce62010-09-04 19:52:44 +020011echo 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: $?"