2010-09-04 19:52:44 +02:00
|
|
|
# Test for correct handling of backslashes
|
|
|
|
a=qwerty
|
|
|
|
|
2010-09-09 14:04:57 +02:00
|
|
|
b=-$a-\t-\\-\"-\`-\--\z-\*-\?-
|
2010-09-04 19:52:44 +02:00
|
|
|
echo b1=$b
|
|
|
|
echo "b1=$b"
|
2010-09-09 14:04:57 +02:00
|
|
|
b="-$a-\t-\\-\"-\`-\--\z-\*-\?-"
|
2010-09-04 19:52:44 +02:00
|
|
|
echo b2=$b
|
|
|
|
echo "b2=$b"
|
2010-09-09 14:04:57 +02:00
|
|
|
b='-$a-\t-\\-\"-\`-\--\z-\*-\?-'
|
2010-09-04 19:52:44 +02:00
|
|
|
echo b3=$b
|
|
|
|
echo "b3=$b"
|
|
|
|
|
|
|
|
c=$b
|
|
|
|
echo "c=$c"
|
|
|
|
c=${b}
|
|
|
|
echo "c=$c"
|
|
|
|
c="$b"
|
|
|
|
echo "c=$c"
|
|
|
|
c="${b}"
|
|
|
|
echo "c=$c"
|
|
|
|
|
|
|
|
echo "Done: $?"
|