Project

General

Profile

« Previous | Next » 

Revision 9806

lib/sh/util.sh: foreach_arg(): echo_run the cmd at a log_level up so it isn't printed as if it were an external command (log_level 1)

View differences:

lib/sh/util.sh
124 124
function foreach_arg()
125 125
{
126 126
	echo_func; kw_params cmd; : "${cmd:?}"; local a
127
	for a in "$@"; do a="$(echo_run "$cmd" "$a")" || return; args+=("$a"); done
127
	for a in "$@"; do
128
		a="$(clog++ echo_run "$cmd" "$a")" || return; args+=("$a")
129
	done
128 130
	echo_vars args
129 131
}
130 132
alias foreach_arg='"foreach_arg" "$@"; set -- "${args[@]}"; unset args'

Also available in: Unified diff