Revision 9030
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
53 | 53 |
fi # load new aliases |
54 | 54 |
if self_being_included; then |
55 | 55 |
|
56 |
# usage: save_e_cmd cmd... || { use $e (or $?); rethrow; } |
|
57 |
function save_e_cmd () { "$@"; save_e; rethrow; } # rethrow because e= clears $? |
|
58 |
alias save_e_cmd='declare e; save_e_cmd ' # last space alias-expands next word |
|
59 |
|
|
60 | 56 |
function log_e () # usage: log_e cmd... [ || use $e (or $?) ] |
61 | 57 |
{ |
62 | 58 |
if "$@"; then :; else # don't use ! because that resets $? |
Also available in: Unified diff
lib/sh/util.sh: removed no longer used save_e_cmd