Revision 9234
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
336 | 336 |
alias export="echo_export" # automatically echo env vars when they are set |
337 | 337 |
fi |
338 | 338 |
|
339 |
func_override params__lang |
|
340 |
params() { params__lang "$@"; echo_vars "$@"; } # echo all keyword params |
|
339 | 341 |
|
342 |
|
|
340 | 343 |
### external command input/output |
341 | 344 |
|
342 | 345 |
# usage: cmd1 | { pipe_delay; cmd2; } |
... | ... | |
421 | 424 |
function to_file() # usage: stdout=... [if_not_exists=1] to_file cmd... |
422 | 425 |
{ |
423 | 426 |
echo_func; params stdout |
424 |
: "${stdout?}"; echo_vars stdout
|
|
427 |
: "${stdout?}" |
|
425 | 428 |
test ! "$if_not_exists" || require_not_exists "$stdout" || return 0 |
426 | 429 |
"$@" >"$stdout" || { save_e; log_e; rm "$stdout"; rethrow; } |
427 | 430 |
} |
Also available in: Unified diff
lib/sh/util.sh: logging: echo all keyword params by overriding params(). this requires removing manual echo_vars calls.