Project

General

Profile

« Previous | Next » 

Revision 8984

lib/util.sh: auto-echo common external commands, such as rm

View differences:

lib/util.sh
112 112

  
113 113
echo_run () { echo_cmd "$@"; "$@"; }
114 114

  
115
# auto-echo common external commands
116
for cmd in rm; do alias "$cmd=echo_run $cmd"; done; unset cmd
117

  
115 118
alias echo_run_extern='echo_run log_stderr_cmd "extern" '
116 119
	# last space alias-expands next word
117 120

  

Also available in: Unified diff