3
0

var_unbackslash1.tests 241 B

1234567891011121314151617181920212223242526272829303132333435
  1. ad="Ok"
  2. a="Ba"
  3. # "Ok"
  4. echo $a\
  5. d
  6. # This variable contains backslash+newline!
  7. e='echo $a\
  8. d'
  9. # "Ba d"
  10. eval $e
  11. # "Ok"
  12. eval "$e"
  13. echo $\
  14. (echo Ok\
  15. )
  16. echo "$\
  17. (echo Ok\
  18. )"
  19. echo Forty two:$\
  20. (\
  21. (\
  22. 42\
  23. )\
  24. )
  25. echo "Forty two:$\
  26. (\
  27. (\
  28. 42\
  29. )\
  30. )"