Project

General

Profile

« Previous | Next » 

Revision 8983

lib/util.sh: echo_run_extern, extern aliases: alias-expand next word (the command) by adding trailing space to alias def

View differences:

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