Revision 9193
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
242 | 242 |
## external commands |
243 | 243 |
|
244 | 244 |
function command() |
245 |
# usage: [stdout2stderr=1] [stderr_is_errors=1] [limit_stderr=1] command \
|
|
245 |
# usage: [limit_stderr=1] [limit_stdout=1] [stderr_is_errors=1] command \
|
|
246 | 246 |
# extern_cmd... |
247 | 247 |
# to view only explicitly-displayed errors: explicit_errors_only=1 script... |
248 | 248 |
{ |
249 |
if test "$limit_stdout"; then local stdout2stderr=1 limit_stderr=1; fi |
|
250 |
|
|
249 | 251 |
test "$cmd_echoed" || echo_run_prep |
250 | 252 |
( |
251 | 253 |
if test "$limit_stderr"; then limit_stderr; fi |
Also available in: Unified diff
lib/sh/util.sh: command(): added limit_stdout=1 flag which implies stdout2stderr=1 limit_stderr=1