summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-09-09 22:14:18 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-09-09 22:14:18 (EDT)
commitd4e38d2bd079659586bb3b2b3002d317cf6a867a (patch)
tree9dea7f0cfdc5e46be3cde1113335910c279ee2ca
parente9a65be19d9af512048162dd681437f771739b92 (diff)
Fix IFS usage in ob_reduce_deps.
-rw-r--r--lib/deps.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/deps.sh b/lib/deps.sh
index 5637297..cf947a8 100644
--- a/lib/deps.sh
+++ b/lib/deps.sh
@@ -145,10 +145,10 @@ ob_reduce_deps()
fi
_obrd_orig_ifs="${IFS}"
- IFS=', '
+ IFS=','
for _obrd_dep_and in ${_obrd_deps}; do
if ! ${_obrd_union}; then
- IFS='| '
+ IFS='|'
_obrd_dep_or_list=
for _obrd_dep_or in ${_obrd_dep_and}; do
_obrd_dep="$(ob_parse_dep -a "${_obrd_host_arch}" \
@@ -170,6 +170,7 @@ ob_reduce_deps()
:
fi
done
+ IFS="${_obrd_orig_ifs}"
echo "${_obrd_dep_list}"