aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/ebuild
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2015-11-11 21:12:50 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2015-11-11 21:12:50 +0000
commitac5169c87ee1694e7de9b8c06c321716d8564a28 (patch)
treebb425b613ab7dfddbd8b0ab524e282cc45c01ad5 /paludis/repositories/e/ebuild
parent27173447c84657a9aafe57b1b9bfb5c7087b0f39 (diff)
downloadpaludis-ac5169c87ee1694e7de9b8c06c321716d8564a28.tar.gz
paludis-ac5169c87ee1694e7de9b8c06c321716d8564a28.tar.xz
Change bash compatibility level handling
Apparently bash is going to deprecate the compat* shopts in favour of the BASH_COMPAT variable, so use that instead. BASH_COMPAT is only supported in 4.3 and later, but it doesn't hurt to set it anyway - in fact, this is better than the shopt version because 4.2 doesn't support shopt compat42. I don't think it's worth messing around with falling back to shopt for older versions - only EAPIs before 6 would be affected, and those have survived this long without setting anything anyway.
Diffstat (limited to 'paludis/repositories/e/ebuild')
-rwxr-xr-xpaludis/repositories/e/ebuild/ebuild.bash1
1 files changed, 1 insertions, 0 deletions
diff --git a/paludis/repositories/e/ebuild/ebuild.bash b/paludis/repositories/e/ebuild/ebuild.bash
index f3f51c1e5..3d3991a79 100755
--- a/paludis/repositories/e/ebuild/ebuild.bash
+++ b/paludis/repositories/e/ebuild/ebuild.bash
@@ -84,6 +84,7 @@ EBUILD_METADATA_VARIABLES="DEPEND RDEPEND PDEPEND IUSE IUSE_EFFECTIVE SRC_URI DO
PALUDIS_EBUILD_RDEPEND_WAS_SET PALUDIS_EBUILD_DEPEND REQUIRED_USE SCM_REVISION"
EBUILD_METADATA_VARIABLES_FROM_CPLUSPLUS="SLOT EAPI OPTIONS USE IUSE_EFFECTIVE"
+export -n BASH_COMPAT=${PALUDIS_BASH_COMPAT}
shopt -s expand_aliases
[[ -z ${PALUDIS_SHELL_OPTIONS} && unset == ${PALUDIS_SHELL_OPTIONS-unset} ]] &&
shopt -s extglob