Skip to content

Instantly share code, notes, and snippets.

@drewr drewr/capture.sh
Created Mar 19, 2010

Embed
What would you like to do?
#!/bin/sh
died=`sh die.sh`
case $? in
0) echo success;;
1) echo warn;;
*) echo fail;;
esac
## % sh capture.sh
## warn
#!/bin/sh
echo dying 1
exit 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.