From bb839b71b05c8123b345ac3c36dccc1a49e053f7 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 27 Oct 2012 16:46:46 -0400 Subject: Improve IFS resetting in ob_reduce_deps(). --- diff --git a/lib/deps.sh b/lib/deps.sh index 3f54386..853e55b 100644 --- a/lib/deps.sh +++ b/lib/deps.sh @@ -174,8 +174,7 @@ ob_parse_dep() ob_reduce_deps() { _ob_local _obrd_opt _obrd_host_arch _obrd_host_plat _obrd_deps \ - _obrd_orig_ifs _obrd_dep_and _obrd_dep_or \ - _obrd_dep_list _obrd_dep_or_list _obrd_dep + _obrd_dep_and _obrd_dep_or _obrd_dep_list _obrd_dep_or_list _obrd_dep _obrd_union='false' @@ -205,15 +204,14 @@ ob_reduce_deps() return ${?} fi - _obrd_orig_ifs="${IFS}" IFS=',' for _obrd_dep_and in ${_obrd_deps}; do - IFS="${_obrd_orig_ifs}" + unset IFS if ! ${_obrd_union}; then IFS='|' _obrd_dep_or_list= for _obrd_dep_or in ${_obrd_dep_and}; do - IFS="${_obrd_orig_ifs}" + unset IFS _obrd_dep="$(ob_parse_dep -a "${_obrd_host_arch}" \ -P "${_obrd_host_plat}" "${_obrd_dep_or}")" if [ -n "${_obrd_dep}" ]; then @@ -240,6 +238,7 @@ ob_reduce_deps() fi fi done + unset IFS echo "${_obrd_dep_list}" -- cgit v0.9.1