2010-09-04 23:22:44 +05:30
|
|
|
# Test for correct handling of backslashes
|
|
|
|
a=qwerty
|
|
|
|
|
2010-09-09 17:34:57 +05:30
|
|
|
b=-$a-\t-\\-\"-\`-\--\z-\*-\?-
|
2010-09-04 23:22:44 +05:30
|
|
|
echo b1=$b
|
|
|
|
echo "b1=$b"
|
2010-09-09 17:34:57 +05:30
|
|
|
b="-$a-\t-\\-\"-\`-\--\z-\*-\?-"
|
2010-09-04 23:22:44 +05:30
|
|
|
echo b2=$b
|
|
|
|
echo "b2=$b"
|
2010-09-09 17:34:57 +05:30
|
|
|
b='-$a-\t-\\-\"-\`-\--\z-\*-\?-'
|
2010-09-04 23:22:44 +05:30
|
|
|
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: $?"
|