Project

General

Profile

« Previous | Next » 

Revision 9160

lib/sh/util.sh: external commands: always use command rather than echo_run to indicate that a command is external, because command() ensures that what it invokes is not a shell function, and sets 2>&22 where needed

View differences:

lib/sh/util.sh
226 226
	else "$@"; fi
227 227
}
228 228

  
229
# auto-echo common external commands
230
for cmd in rm; do alias "$cmd=echo_run $cmd"; done; unset cmd
231

  
232 229
# echo all external commands
233 230
alias command='echo_run command ' # last space alias-expands next word
234 231

  
235
# commands that are always external
236
for cmd in env; do alias "$cmd=command $cmd"; done; unset cmd
232
# auto-echo common external commands
233
for cmd in env rm; do alias "$cmd=command $cmd"; done; unset cmd
237 234

  
238 235
## functions
239 236

  

Also available in: Unified diff