mirror of
https://github.com/sheumann/hush.git
synced 2024-08-14 11:28:58 +00:00
24 lines
316 B
Plaintext
24 lines
316 B
Plaintext
|
# Test for correct handling of backslashes
|
||
|
a=qwerty
|
||
|
|
||
|
b=-$a-\t-\\-\"-\`-\--\z-\*-\?-
|
||
|
echo b1=$b
|
||
|
echo "b1=$b"
|
||
|
b="-$a-\t-\\-\"-\`-\--\z-\*-\?-"
|
||
|
echo b2=$b
|
||
|
echo "b2=$b"
|
||
|
b='-$a-\t-\\-\"-\`-\--\z-\*-\?-'
|
||
|
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: $?"
|