summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/ebuild.sh2
-rw-r--r--pym/portage/__init__.py5
2 files changed, 6 insertions, 1 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 01c9a0c37..f01fdb16c 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1595,7 +1595,7 @@ filter_readonly_variables() {
SANDBOX_DEBUG_LOG SANDBOX_DISABLED SANDBOX_LIB
SANDBOX_LOG SANDBOX_ON"
filtered_vars="${readonly_bash_vars} ${READONLY_PORTAGE_VARS}
- BASH_.* PATH"
+ BASH_.* PATH POSIXLY_CORRECT"
if hasq --filter-sandbox $* ; then
filtered_vars="${filtered_vars} SANDBOX_.*"
else
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index eff5c0711..b269ea9e9 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -987,6 +987,11 @@ class config(object):
"INFOPATH", "MANPATH",
]
+ # variables that break bash
+ _environ_filter += [
+ "POSIXLY_CORRECT",
+ ]
+
# portage config variables and variables set directly by portage
_environ_filter += [
"ACCEPT_KEYWORDS", "AUTOCLEAN",