Revision 9444
Added by Aaron Marcuse-Kubitza over 11 years ago
util.sh | ||
---|---|---|
545 | 545 |
else _redirs+=("$cmd_log_fd>/dev/null"); |
546 | 546 |
fi |
547 | 547 |
fi |
548 |
|
|
549 |
cmd2rel_path; echo_cmd "$@" "${_redirs[@]}" |
|
550 |
|
|
551 |
# add after echoing command so it isn't echoed at the end of every command |
|
548 | 552 |
if test "$cmd_log_fd" != 2; then # fd 2 not used for logging |
549 | 553 |
_redirs+=("2>&$err_fd") # assume fd 2 used for errors |
550 | 554 |
fi |
551 | 555 |
|
552 |
cmd2rel_path; echo_cmd "$@" "${_redirs[@]}" |
|
553 | 556 |
( |
554 | 557 |
if can_log; then indent; fi |
555 | 558 |
log++ set_fds "${_redirs[@]}" |
Also available in: Unified diff
lib/sh/util.sh: command(): 2>&$err_fd: add to _redirs after echoing command so it isn't echoed at the end of every command (since this redirection is frequently applied)