Revision 9091
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
266 | 266 |
alias import_vars="$(cat <<'EOF' |
267 | 267 |
: "${prefix:?}" |
268 | 268 |
declare src_var dest_var |
269 |
for src_var in $(eval echo '${!'$prefix'*}'); do
|
|
269 |
for src_var in $(get_prefix_vars); do
|
|
270 | 270 |
dest_var="${src_var#$prefix}" |
271 | 271 |
declare "$dest_var=${!src_var}"; echo_vars "$dest_var" |
272 | 272 |
done |
Also available in: Unified diff
lib/sh/util.sh: import_vars alias: use new get_prefix_vars()