aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Bo ├śrsted Andresen <bo.andresen@zlin.dk> 2007-11-23 19:36:24 +0000
committerAvatar Bo ├śrsted Andresen <bo.andresen@zlin.dk> 2007-11-23 19:36:24 +0000
commitdf502f2988a1810dd1bf770bc07fc46cae037306 (patch)
treefb4f32388f05fc64f17239d80c18beb5d38928b6
parent4ee1f83fe481e25028be7f11e2c54cdeff0f6a8f (diff)
downloadpaludis-df502f2988a1810dd1bf770bc07fc46cae037306.tar.gz
paludis-df502f2988a1810dd1bf770bc07fc46cae037306.tar.xz
Filter bash variables in builtin_saveenv.bash for compatibility with bash-3.2_p20+.
-rw-r--r--paludis/repositories/e/ebuild/builtin_saveenv.bash2
1 files changed, 2 insertions, 0 deletions
diff --git a/paludis/repositories/e/ebuild/builtin_saveenv.bash b/paludis/repositories/e/ebuild/builtin_saveenv.bash
index e9cdc62..37dd41f 100644
--- a/paludis/repositories/e/ebuild/builtin_saveenv.bash
+++ b/paludis/repositories/e/ebuild/builtin_saveenv.bash
@@ -21,6 +21,8 @@ builtin_saveenv()
[[ -d "${PALUDIS_LOADSAVEENV_DIR}" ]] || die "\$PALUDIS_LOADSAVEENV_DIR (\"${PALUDIS_LOADSAVEENV_DIR}\") not a directory"
[[ -f "${PALUDIS_LOADSAVEENV_DIR}/loadsaveenv" ]] && rm -f "${PALUDIS_LOADSAVEENV_DIR}/loadsaveenv"
( set ; export -p ) | sed \
+ -e '/^BASH_\(ARGC\|ARGV\|LINENO\|SOURCE\)=/d' \
+ -e '/^\(FUNCNAME\|GROUPS\)=/d' \
-e '/^\(declare -[rx]\+ \)\?SANDBOX_/d' \
-e '/^\(declare -[rx]\+ \)\?.\?[UP]ID/d' \
-e '/^\(declare -[rx]\+ \)\?BASH_REMATCH/d' \