Revision 9229
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...; } |
|
77 |
params() # usage: func() { params param_var...; }; ...; param_var=... cmd |
|
78 |
# removes keyword-param-only vars from the environment |
|
79 |
{ unexport "$@"; } |
|
78 | 80 |
|
79 | 81 |
alias self='command "$FUNCNAME"' # usage: wrapper() { self ...; } |
80 | 82 |
|
Also available in: Unified diff
lib/sh/util.sh: params(): added doc comment