summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/phase-helpers.sh8
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() {