Revision 8993
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
|
|
119 |
alias echo_run_extern='echo_run log_stderr_cmd "extern" '
|
|
118 |
# controls stderr of (and echoes) an external command
|
|
119 |
alias log_stderr_extern='echo_run log_stderr_cmd "extern" '
|
|
120 | 120 |
# last space alias-expands next word |
121 | 121 |
|
122 | 122 |
# echo and control stderr of all external commands |
123 |
alias extern="echo_run_extern " # last space alias-expands next word
|
|
123 |
alias extern="log_stderr_extern " # last space alias-expands next word
|
|
124 | 124 |
|
125 | 125 |
alias self='extern "$FUNCNAME"' # usage: wrapper () { self ...; } |
126 | 126 |
|
Also available in: Unified diff
lib/util.sh: echo_run_extern: renamed to log_stderr_extern since controlling stderr is its primary function