Project

General

Profile

« Previous | Next » 

Revision 8929

lib/util.sh: added self alias, for use with wrapper functions of external commands

View differences:

lib/util.sh
94 94

  
95 95
alias extern="echo_run_extern" # automatically echo external commands
96 96

  
97
alias self='extern "$FUNCNAME"' # usage: wrapper () { self ...; }
98

  
97 99
# commands that are always external
98 100
for cmd in env; do alias "$cmd=extern $cmd"; done; unset cmd
99 101

  

Also available in: Unified diff