Created
July 9, 2013 13:23
-
-
Save akesterson/5957298 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
akesterson@ATLPTLBS3TWW1 ~/source/cmdarg | |
$ cat test.sh | |
#!/bin/bash | |
source cmdarg.sh | |
function x | |
{ | |
y | |
} | |
function z | |
{ | |
x | |
} | |
function y | |
{ | |
trap cmdarg_traceback ERR | |
rm /dev/lolidontexist | |
trap - ERR | |
} | |
z | |
akesterson@ATLPTLBS3TWW1 ~/source/cmdarg | |
$ ./test.sh | |
rm: cannot remove `/dev/lolidontexist': No such file or directory | |
File "./test.sh", line 23, probably in main | |
z | |
File "./test.sh", line 13, probably in z | |
x | |
File "./test.sh", line 8, probably in x | |
y | |
Error: | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment