diff options
author | P. 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) |
commit | 7d9351eb6b584a63652833697ad76dab137ced9d (patch) | |
tree | 5938dba49705c91ea131290d281bc6f1c658861f /lib | |
parent | d4e38d2bd079659586bb3b2b3002d317cf6a867a (diff) |
Fix whitespace handling in ob_parse_dep.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/deps.sh | 3 |
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 ${?} |