Revision 13240
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/lib/sh/util.sh | ||
---|---|---|
979 | 979 |
{ |
980 | 980 |
local cmd_name_log_inc="${cmd_name_log_inc-0}" |
981 | 981 |
|
982 |
# print <>file redirs before cmd, because they introduce it |
|
983 | 982 |
log+ "$cmd_name_log_inc" echo_cmd "$@" $( |
984 | 983 |
set -- "${redirs[@]}" # operate on ${redirs[@]} |
985 | 984 |
while test "$#" -gt 0 && starts_with '[<>][^&]' "$1" |
985 |
# print <>file redirs before cmd, because they introduce it |
|
986 | 986 |
do log "$1 \\"; shift; done # log() will run *before* echo_cmd itself |
987 | 987 |
echo "$@" |
988 | 988 |
) |
Also available in: Unified diff
lib/sh/util.sh: echo_redirs_cmd(): moved comment about <>file redirs to line that it applies to