summaryrefslogtreecommitdiffhomepage
path: root/subr/rtl_complex.subr
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-05-15 09:51:13 +0100
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-05-15 09:51:13 +0100
commit64c9461a9513839bae0b1e30013febc26fad1cec (patch)
tree0f8746266f31cb0986035fedcf79d12339febed5 /subr/rtl_complex.subr
parent8a4e16ff3484e7395112e1a8888ee7c8eb176987 (diff)
downloadmidipix_build-64c9461a9513839bae0b1e30013febc26fad1cec.tar.bz2
midipix_build-64c9461a9513839bae0b1e30013febc26fad1cec.tar.xz
subr/rtl.subr:rtl_set_IFS_nl(): initial implementation.
subr/pkg_install.subr:pkgp_install_perms(): use rtl_set_IFS_nl(). subr/rtl_complex.subr:rtl_filter_vars(): use rtl_set_IFS_nl().
Diffstat (limited to 'subr/rtl_complex.subr')
-rw-r--r--subr/rtl_complex.subr5
1 files changed, 3 insertions, 2 deletions
diff --git a/subr/rtl_complex.subr b/subr/rtl_complex.subr
index 4a055515..cb7c90bd 100644
--- a/subr/rtl_complex.subr
+++ b/subr/rtl_complex.subr
@@ -73,8 +73,9 @@ rtl_export_vars() {
};
rtl_filter_vars() {
- local _fn="${1}" _fnfl=0 _qchar="" _var_spec="" _vars="" _vname="" IFS="
-"; for _var_spec in $(set); do
+ local _fn="${1}" _fnfl=0 _qchar="" _var_spec="" _vars="" _vname="" IFS;
+ rtl_set_IFS_nl;
+ for _var_spec in $(set); do
case "${_qchar}" in
"\"") if [ "${_var_spec%\"}" != "${_var_spec}" ]; then
_qchar="";