Revision 9228
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
74 | 74 |
|
75 | 75 |
#### functions |
76 | 76 |
|
77 |
params() { unexport "$@"; } # usage: func() { params param_var...; } |
|
78 |
|
|
77 | 79 |
alias self='command "$FUNCNAME"' # usage: wrapper() { self ...; } |
78 | 80 |
|
79 | 81 |
|
Also available in: Unified diff
lib/sh/util.sh: added params(), which removes keyword-param-only vars from the environment