Project

General

Profile

« Previous | Next » 

Revision 10017

lib/sh/util.sh: auto-echo common external commands: use simpler echo_run instead of command since logging handling is not needed

View differences:

util.sh
50 50
function echo_run() { :; }
51 51
alias echo_run='"echo_run" ' # last space alias-expands next word
52 52

  
53
# auto-echo common external commands
54
for cmd in env rm; do alias "$cmd=echo_run $cmd"; done; unset cmd
55

  
53 56
function echo_vars() { :; }
54 57

  
55 58

  
......
752 755
	builtin command "$@"
753 756
}
754 757

  
755
# auto-echo common external commands
756
for cmd in env rm; do alias "$cmd=command $cmd"; done; unset cmd
757 758

  
758

  
759 759
### external command input/output
760 760

  
761 761
echo_stdin() # usage: input|echo_stdin|cmd

Also available in: Unified diff