Revision 12721
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/lib/sh/util.sh | ||
---|---|---|
208 | 208 |
alias export_e='e=$?' |
209 | 209 |
|
210 | 210 |
# **WARNING**: if using this after a command that might succeed (rather than |
211 |
# only upon error), you must first `unset e`
|
|
211 |
# only upon error), you must `unset e` before the command
|
|
212 | 212 |
# idempotent: also works if save_e already called |
213 | 213 |
alias save_e='# idempotent: use $e if the caller already called save_e |
214 | 214 |
declare e_=$?; |
Also available in: Unified diff
lib/sh/util.sh: save_e: made it idempotent so that it also works if save_e was already called