Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. cat test.sh
  2. #!/bin/bash
  3. set -e
  4. VAR="aa"
  5. echo ${VAR} ${VAR2+x}
  6.  
  7. ./test.sh; echo $?
  8. 0
  9.  
  10. cat test2.sh
  11. #!/bin/bash
  12. set -e
  13. VAR="aa"
  14. echo ${VAR} ${VAR2}
  15.  
  16. ./test2.sh; echo $?
  17. 130
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement