Revision 9865
Added by Aaron Marcuse-Kubitza over 11 years ago
util.sh | ||
---|---|---|
131 | 131 |
} |
132 | 132 |
alias foreach_arg='"foreach_arg" "$@"; set -- "${args[@]}"; unset args' |
133 | 133 |
|
134 |
alias self='command "$FUNCNAME"' # usage: wrapper() { self ...; }
|
|
135 |
alias self_sys='command -p "$FUNCNAME"' # usage: wrapper() { self_sys ...; }
|
|
134 |
alias self='command "${FUNCNAME%%__*}"' # usage: wrapper() { self ...; }
|
|
135 |
alias self_sys='command -p "${FUNCNAME%%__*}"' # wrapper() { self_sys ...; }
|
|
136 | 136 |
|
137 | 137 |
pf() { declare -f "$@"; } # usage: pf function # prints func decl for debugging |
138 | 138 |
|
Also available in: Unified diff
bugfix: lib/sh/util.sh: self, self_sys aliases: need to remove any func_override suffix __* from the FUNCNAME