summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-09-09 22:14:49 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-09-09 22:14:49 (EDT)
commit7d9351eb6b584a63652833697ad76dab137ced9d (patch)
tree5938dba49705c91ea131290d281bc6f1c658861f
parentd4e38d2bd079659586bb3b2b3002d317cf6a867a (diff)
Fix whitespace handling in ob_parse_dep.
-rw-r--r--lib/deps.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/deps.sh b/lib/deps.sh
index cf947a8..90cb98d 100644
--- a/lib/deps.sh
+++ b/lib/deps.sh
@@ -61,7 +61,8 @@ ob_parse_dep()
_obpd_dep="$(echo "${1}" | \
sed 's/\([(\[]\)/ \1/g;s/\([<>=][<>=]*\)/\1 /g')"
# Remove leading, trailing, and duplicate spaces.
- _obpd_dep="$(IFS=' ' echo ${_obpd_dep})"
+ _obpd_dep="$(echo "${_obpd_dep}" | \
+ sed 's/\t/ /g;s/^ *//;s/ *$//;s/ */ /g') "
else
_ob_return 125
return ${?}