From b727aa2ee661446f653e23475eb122f8fe37aa9b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 23 Nov 2007 01:39:11 +0000 Subject: [PATCH] Make the sed expression in filter_readonly_variables() handle '^declare -r ' by simply removing it. (trunk r8611) svn path=/main/branches/2.1.2/; revision=8612 --- bin/ebuild.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 20d08e3e3..8124a1511 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -1394,7 +1394,9 @@ 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 's:^declare[[:space:]]\+-\([[:alnum:]]*\)r\([[:alnum:]]*\)[[:space:]]\+:declare -\1\2 :' + egrep -v -e "${var_grep}" | sed \ + -e 's:^declare[[:space:]]\+-r[[:space:]]\+::' \ + -e 's:^declare[[:space:]]\+-\([[:alnum:]]*\)r\([[:alnum:]]*\)[[:space:]]\+:declare -\1\2 :' } # @FUNCTION: preprocess_ebuild_env -- 2.26.2