Revision 8983
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/util.sh | ||
---|---|---|
112 | 112 |
|
113 | 113 |
echo_run () { echo_cmd "$@"; "$@"; } |
114 | 114 |
|
115 |
alias echo_run_extern='echo_run log_stderr_cmd "extern"' |
|
115 |
alias echo_run_extern='echo_run log_stderr_cmd "extern" ' |
|
116 |
# last space alias-expands next word |
|
116 | 117 |
|
117 |
alias extern="echo_run_extern" # automatically echo external commands |
|
118 |
# automatically echo external commands |
|
119 |
alias extern="echo_run_extern " # last space alias-expands next word |
|
118 | 120 |
|
119 | 121 |
alias self='extern "$FUNCNAME"' # usage: wrapper () { self ...; } |
120 | 122 |
|
Also available in: Unified diff
lib/util.sh: echo_run_extern, extern aliases: alias-expand next word (the command) by adding trailing space to alias def