3
0

var_unbackslash.tests 316 B

1234567891011121314151617181920212223
  1. # Test for correct handling of backslashes
  2. a=qwerty
  3. b=-$a-\t-\\-\"-\`-\--\z-\*-\?-
  4. echo b1=$b
  5. echo "b1=$b"
  6. b="-$a-\t-\\-\"-\`-\--\z-\*-\?-"
  7. echo b2=$b
  8. echo "b2=$b"
  9. b='-$a-\t-\\-\"-\`-\--\z-\*-\?-'
  10. echo b3=$b
  11. echo "b3=$b"
  12. c=$b
  13. echo "c=$c"
  14. c=${b}
  15. echo "c=$c"
  16. c="$b"
  17. echo "c=$c"
  18. c="${b}"
  19. echo "c=$c"
  20. echo "Done: $?"