Revision 9103
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
192 | 192 |
echo_run() { cmd2rel_path; echo_cmd "$@"; indent; "$@"; } |
193 | 193 |
|
194 | 194 |
# usage: (limit_stderr; cmd...) || return |
195 |
# `|| return` needed on Mac because of bug where -e doesn't apply to() |
|
195 |
# `|| return` needed on Mac because of bug where -e doesn't apply to ()
|
|
196 | 196 |
limit_stderr() { inc_log_level; if ! can_log; then exec 2>/dev/null; fi; } |
197 | 197 |
|
198 | 198 |
limit_stderr_cmd() # usage: [stdout2stderr=1] limit_stderr_cmd cmd... |
Also available in: Unified diff
lib/sh/util.sh: limit_stderr(): fixed doc comment after space-before-() search-and-replace