Revision 10046
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
155 | 155 |
alias foreach_arg='"foreach_arg" "$@"; set -- "${args[@]}"; unset args' |
156 | 156 |
|
157 | 157 |
alias self='command "${FUNCNAME%%__*}"' # usage: wrapper() { self ...; } |
158 |
alias self_sys='command -p "${FUNCNAME%%__*}"' # wrapper() { self_sys ...; }
|
|
158 |
alias self_sys='sys_cmd "${FUNCNAME%%__*}"' # wrapper() { self_sys ...; }
|
|
159 | 159 |
|
160 | 160 |
pf() { declare -f "$@"; } # usage: pf function # prints func decl for debugging |
161 | 161 |
|
Also available in: Unified diff
lib/sh/util.sh: self_sys alias: use new sys_cmd() instead of `command -p` so that only the command path resolution is performed with a limited PATH, and the invoked command itself inherits the full PATH