From 5ea185c01922d5725dce04ad7dbdc903960ee435 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 13 Dec 2007 03:44:18 +0000 Subject: Bug #202068 - In order to filter unwanted variable assignments out of the bash environment, use a filter-bash-environment.py script that behaves similar to egrep -v except that it leaves bash here- documents intact. svn path=/main/trunk/; revision=8892 --- bin/ebuild.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/ebuild.sh') diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 45437bc2d..5e09daa69 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -1425,7 +1425,7 @@ filter_readonly_variables() { # listed in READONLY_EBUILD_METADATA, since having any readonly attributes # persisting in the saved environment can be inconvenient when it # eventually needs to be reloaded. - egrep -v -e "${var_grep}" | sed \ + "${PORTAGE_BIN_PATH}"/filter-bash-environment.py "${var_grep}" | sed \ -e 's:^declare[[:space:]]\+-r[[:space:]]\+:declare :' \ -e 's:^declare[[:space:]]\+-\([[:alnum:]]*\)r\([[:alnum:]]*\)[[:space:]]\+:declare -\1\2 :' } -- cgit v1.2.3-1-g7c22