Revision 8985
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/util.sh | ||
---|---|---|
115 | 115 |
# auto-echo common external commands |
116 | 116 |
for cmd in rm; do alias "$cmd=echo_run $cmd"; done; unset cmd |
117 | 117 |
|
118 |
# echoes and controls stderr of an external command |
|
118 | 119 |
alias echo_run_extern='echo_run log_stderr_cmd "extern" ' |
119 | 120 |
# last space alias-expands next word |
120 | 121 |
|
121 |
# automatically echo external commands
|
|
122 |
# echo and control stderr of all external commands
|
|
122 | 123 |
alias extern="echo_run_extern " # last space alias-expands next word |
123 | 124 |
|
124 | 125 |
alias self='extern "$FUNCNAME"' # usage: wrapper () { self ...; } |
Also available in: Unified diff
lib/util.sh: echo_run_extern, extern: fixed/added comments to indicate that echo_run_extern echoes and controls stderr of an external command, while the extern alias does this for all external commands