Revision 10044
Added by Aaron Marcuse-Kubitza over 11 years ago
util.sh | ||
---|---|---|
53 | 53 |
# auto-echo common external commands |
54 | 54 |
for cmd in env rm which; do alias "$cmd=echo_run $cmd"; done; unset cmd |
55 | 55 |
|
56 |
echo_builtin() { :; } |
|
57 |
|
|
56 | 58 |
function echo_vars() { :; } |
57 | 59 |
|
58 | 60 |
|
... | ... | |
486 | 488 |
function echo_run() { echo_params; "$@"; } |
487 | 489 |
# see echo_run alias after stub |
488 | 490 |
|
491 |
echo_builtin() { echo_run builtin "$@"; } # usage: echo_builtin builtin_cmd... |
|
492 |
|
|
489 | 493 |
echo_eval() { echo_params; builtin eval "$@"; } |
490 | 494 |
|
491 | 495 |
# usage: redirs=(...); [cmd_name_log_inc=#] echo_redirs_cmd |
Also available in: Unified diff
lib/sh/util.sh: added echo_builtin()