3
0

var_bash3.tests 525 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. a='abc'
  2. r=${a//b/\041#}
  3. echo 1 $r
  4. echo 2 ${a//b/\041#}
  5. echo 3 "${a//b/\041#}"
  6. a='abc'
  7. r=${a//b/\\041#}
  8. echo 4 $r
  9. echo 5 ${a//b/\\041#}
  10. echo 6 "${a//b/\\041#}"
  11. a='abc'
  12. b='\041#'
  13. r=${a//b/$b}
  14. echo 7 $r
  15. echo 8 ${a//b/$b}
  16. echo 9 "${a//b/$b}"
  17. a='abc'
  18. b='\'
  19. r="${a//b/$b}"
  20. echo 10 $r
  21. echo 11 ${a//b/$b}
  22. echo 12 "${a//b/$b}"
  23. a='abc'
  24. b='\\'
  25. r="${a//b/$b}"
  26. echo 13 $r
  27. echo 14 ${a//b/$b}
  28. echo 15 "${a//b/$b}"
  29. a='abc'
  30. b='\t'
  31. r="${a//b/$b}"
  32. echo 16 $r
  33. echo 17 ${a//b/$b}
  34. echo 18 "${a//b/$b}"
  35. echo 19 ${a//b/\t}
  36. echo 20 "${a//b/\t}"