From Dagmar, 4 Weeks ago, written in Plain Text.
  1. bash-4.2$ cat foo.sh
  2. #!/bin/bash
  3.  
  4. FOO=$(ls)
  5.  
  6. # vim: ts=4 bg=dark
  7.  
  8. bash-4.2$ # Now we run this with `bash -x` in order to see what it thinks it's doing...
  9. bash-4.2$ bash -x foo.sh
  10. ++ ls
  11. + FOO='$YAY.txt
  12. anotherfile.txt
  13. foo.sh
  14. randomfile.txt'
  15.  
  16.  
  17.  
captcha