#!/usr/bin/env bashecho "$BASH_VERSION" function exiting { echo $?}trap exiting EXIT #(exit 9): ${foo?'where is foo?'}
Standard input is empty
5.0.3(1)-release 1
./prog.sh: line 10: foo: where is foo?
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!