Revision 11250
Added by Aaron Marcuse-Kubitza about 11 years ago
lib/sh/util.sh | ||
---|---|---|
75 | 75 |
|
76 | 76 |
alias local_export='declare -x' # combines effects of local and export |
77 | 77 |
|
78 |
# to make export only visible locally: local var="$var"; export var |
|
79 |
# within cmd: var="$var" cmd... |
|
80 |
|
|
78 | 81 |
get_prefix_vars() { : "${prefix:?}"; eval echo '${!'$prefix'*}'; } |
79 | 82 |
|
80 | 83 |
# usage: local prefix=..._; import_vars |
Also available in: Unified diff
lib/sh/util.sh: added instructions for making an export only visible locally