summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRepository QA checks <repo-qa-checks@gentoo.org>2017-04-14 17:12:18 +0000
committerRepository QA checks <repo-qa-checks@gentoo.org>2017-04-14 17:12:18 +0000
commit3e9ab69ebf1f46e94688c22d12c6df4f3bcdc3e3 (patch)
treec0a55084d3451a3c93328bb5692a033badd458c5 /eclass/estack.eclass
parent2017-04-14 16:02:24 UTC (diff)
parentnet-libs/libmicrohttpd: version bump to 0.9.53 (diff)
downloadgentoo-3e9ab69ebf1f46e94688c22d12c6df4f3bcdc3e3.tar.gz
gentoo-3e9ab69ebf1f46e94688c22d12c6df4f3bcdc3e3.tar.bz2
gentoo-3e9ab69ebf1f46e94688c22d12c6df4f3bcdc3e3.zip
Merge updates from master
Diffstat (limited to 'eclass/estack.eclass')
-rw-r--r--eclass/estack.eclass9
1 files changed, 2 insertions, 7 deletions
diff --git a/eclass/estack.eclass b/eclass/estack.eclass
index 19c388f3d8d2..f548abf8c283 100644
--- a/eclass/estack.eclass
+++ b/eclass/estack.eclass
@@ -158,7 +158,7 @@ eshopts_push() {
[[ $# -eq 0 ]] && return 0
shopt "$@" || die "${FUNCNAME}: bad options to shopt: $*"
else
- estack_push eshopts $-
+ estack_push eshopts "$(shopt -p -o)"
[[ $# -eq 0 ]] && return 0
set "$@" || die "${FUNCNAME}: bad options to set: $*"
fi
@@ -172,12 +172,7 @@ eshopts_push() {
eshopts_pop() {
local s
estack_pop eshopts s || die "${FUNCNAME}: unbalanced push"
- if [[ ${s} == "shopt -"* ]] ; then
- eval "${s}" || die "${FUNCNAME}: sanity: invalid shopt options: ${s}"
- else
- set +$- || die "${FUNCNAME}: sanity: invalid shell settings: $-"
- set -${s} || die "${FUNCNAME}: sanity: unable to restore saved shell settings: ${s}"
- fi
+ eval "${s}" || die "${FUNCNAME}: sanity: invalid shopt options: ${s}"
}
# @FUNCTION: eumask_push