Project

General

Profile

« Previous | Next » 

Revision 9722

lib/sh/util.sh: added self_sys alias, which uses only system utilities (`command -p`) instead of the current PATH

View differences:

lib/sh/util.sh
106 106
{ unexport "$@"; }
107 107

  
108 108
alias self='command "$FUNCNAME"' # usage: wrapper() { self ...; }
109
alias self_sys='command -p "$FUNCNAME"' # usage: wrapper() { self_sys ...; }
109 110

  
110 111
pf() { declare -f "$@"; } # usage: pf function # prints func decl for debugging
111 112

  

Also available in: Unified diff