Revision 9108
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
202 | 202 |
|
203 | 203 |
limit_stderr_cmd() # usage: [stdout2stderr=1] limit_stderr_cmd cmd... |
204 | 204 |
{ |
205 |
case "$1" in echo_run) shift; cmd2rel_path; echo_cmd "$@";; esac |
|
206 |
(limit_stderr; indent; "$@") || return
|
|
205 |
case "$1" in echo_run) shift; cmd2rel_path; echo_cmd "$@"; indent;; esac
|
|
206 |
(limit_stderr; "$@") || return |
|
207 | 207 |
} |
208 | 208 |
alias limit_stderr_cmd='limit_stderr_cmd ' # last space alias-expands next word |
209 | 209 |
|
Also available in: Unified diff
bugfix: lib/sh/util.sh: limit_stderr(): moved indent to echo_run prep, because it only applies to commands invoked with echo_run