Project

General

Profile

« Previous | Next » 

Revision 9191

lib/sh/util.sh: added run_cmd

View differences:

lib/sh/util.sh
40 40

  
41 41
unalias() { builtin unalias "$@" 2>&- || true; } # no error if undefined
42 42

  
43
# usage: alias alias_='var=value run_cmd '
44
function run_cmd() { "$@"; }
45
alias run_cmd='"run_cmd" ' # last space alias-expands next word
43 46

  
47

  
44 48
#### functions
45 49

  
46 50
alias self='command "$FUNCNAME"' # usage: wrapper() { self ...; }

Also available in: Unified diff