fork download
  1. #!/usr/bin/env bash
  2. echo "$BASH_VERSION"
  3.  
  4. function exiting {
  5. echo $?
  6. }
  7. trap exiting EXIT
  8.  
  9. #(exit 9)
  10. : ${foo?'where is foo?'}
  11.  
Runtime error #stdin #stdout #stderr 0s 4360KB
stdin
Standard input is empty
stdout
5.0.3(1)-release
1
stderr
./prog.sh: line 10: foo: where is foo?