diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-09-10 12:46:50 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-09-10 12:46:50 -0700 |
commit | 04f8e1e2b542c5a524ac8ab5e95f427bfe5a2de7 (patch) | |
tree | 4b113d1127f7ac42fcae112640216a17bbf4db87 | |
parent | Improve ignored binpkg display for bug #434540. (diff) | |
download | portage-04f8e1e2b542c5a524ac8ab5e95f427bfe5a2de7.tar.gz portage-04f8e1e2b542c5a524ac8ab5e95f427bfe5a2de7.tar.bz2 portage-04f8e1e2b542c5a524ac8ab5e95f427bfe5a2de7.zip |
use(): use set -f and handle IFS
-rw-r--r-- | bin/phase-helpers.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh index 18877f059..bb5e057a7 100644 --- a/bin/phase-helpers.sh +++ b/bin/phase-helpers.sh @@ -215,11 +215,15 @@ use() { "in IUSE for ${CATEGORY}/${PF}" fi + local IFS=$' \t\n' prev_shopts=$- ret + set -f if has ${u} ${USE} ; then - return ${found} + ret=${found} else - return $((!found)) + ret=$((!found)) fi + [[ ${prev_shopts} == *f* ]] || set +f + return ${ret} } use_with() { |