Revision 12205
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/lib/sh/util.sh | ||
---|---|---|
85 | 85 |
|
86 | 86 |
alias local_export='declare -x' # combines effects of local and export |
87 | 87 |
|
88 |
alias local_export_array='declare -ax' |
|
89 |
# `export` does not support arrays in older versions of bash |
|
90 |
|
|
88 | 91 |
# to make export only visible locally: local var="$var"; export var |
89 | 92 |
# within cmd: var="$var" cmd... |
90 | 93 |
|
Also available in: Unified diff
lib/sh/util.sh: added local_export_array