Revision 9656
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
417 | 417 |
{ |
418 | 418 |
( |
419 | 419 |
# print <>file redirs before cmd, because they introduce it |
420 |
local file_redirs=() |
|
421 | 420 |
while test "${#redirs[@]}" -gt 0 && starts_with '[<>][^&]' "${redirs[0]}" |
422 | 421 |
do |
423 |
file_redirs+=("${redirs[0]} \\ |
|
424 |
") |
|
422 |
log "${redirs[0]} \\" |
|
425 | 423 |
redirs=("${redirs[@]:1}") |
426 | 424 |
done |
427 |
echo_cmd "${file_redirs[@]}$@" "${redirs[@]}"
|
|
425 |
echo_cmd "$@" "${redirs[@]}" |
|
428 | 426 |
) |
429 | 427 |
} |
430 | 428 |
alias echo_redirs_cmd='"echo_redirs_cmd" "$@"' |
Also available in: Unified diff
lib/sh/util.sh: echo_redirs_cmd(): log each file redir with a separate log() statement, so each line is indented