Project

General

Profile

« Previous | Next » 

Revision 9536

lib/sh/util.sh: added ignore(), which uses ||-syntax

View differences:

lib/sh/util.sh
129 129
alias end_try='rethrow'
130 130
alias end_try_subshell='rethrow_subshell'
131 131

  
132
ignore() { save_e; ignore_e "$@"; rethrow; } # usage: try cmd || ignore status
133

  
132 134
fi # load new aliases
133 135
if self_being_included; then
134 136

  

Also available in: Unified diff