fork download
  1. #!/bin/bash
  2. set -e
  3. set -o pipefail
  4. shopt -s inherit_errexit
  5.  
  6. declare _x
  7. _x=`command-with-error`
  8. echo "_x=${_x}"
  9.  
Runtime error #stdin #stdout #stderr 0.01s 5672KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
./prog.sh: line 7: command-with-error: command not found