estack.eclass: Use 'shopt -p -o' to restore 'set' flags
authorMichał Górny <mgorny@gentoo.org>
Fri, 24 Mar 2017 20:58:34 +0000 (21:58 +0100)
committerMichał Górny <mgorny@gentoo.org>
Fri, 14 Apr 2017 16:27:52 +0000 (18:27 +0200)
commit16c504f37e471540d3835e7f2fe6beb1f133e29b
tree0614e59cfc3c979173071e3d46b50d3d06b53f00
parent16112d6d0340eb6f27a5ef0fa62274a3f90569da
estack.eclass: Use 'shopt -p -o' to restore 'set' flags

Use 'shopt -p -o' to obtain the current set of 'set' flags, and to
restore them on popping. Unlike $-, it is output in command form (alike
'shopt -p'), removing the need for separate logic in eshopts_pop.
eclass/estack.eclass