Revision 10648
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
162 | 162 |
alias self='command "$(self_name)"' # usage: wrapper() { self ...; } |
163 | 163 |
alias self_sys='sys_cmd "$(self_name)"' # wrapper() { self_sys ...; } |
164 | 164 |
|
165 |
pf() { declare -f "$@"; } # usage: pf function # prints func decl for debugging
|
|
165 |
pf() { declare -f "$@" >&2; } # usage: pf function # debug-prints func decl
|
|
166 | 166 |
|
167 | 167 |
all_funcs() # usage: for func in $(all_funcs); do ...; done # all declared funcs |
168 | 168 |
{ declare -F|while read -r line; do echo -n "${line#declare -f } "; done; } |
Also available in: Unified diff
bugfix: lib/sh/util.sh: pf(): echo func decl to stderr instead of stdout