From e9d8b72f72055c0ba2eb6b6131ad1bd09d7a6e3d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 13 Dec 2007 01:53:46 +0000 Subject: [PATCH] In filter_readonly_variables(), replace 'declare -r ' with 'declare ' instead of removing it completely. svn path=/main/trunk/; revision=8891 --- bin/ebuild.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ebuild.sh b/bin/ebuild.sh index fbccce70c..45437bc2d 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -1426,7 +1426,7 @@ filter_readonly_variables() { # persisting in the saved environment can be inconvenient when it # eventually needs to be reloaded. egrep -v -e "${var_grep}" | sed \ - -e 's:^declare[[:space:]]\+-r[[:space:]]\+::' \ + -e 's:^declare[[:space:]]\+-r[[:space:]]\+:declare :' \ -e 's:^declare[[:space:]]\+-\([[:alnum:]]*\)r\([[:alnum:]]*\)[[:space:]]\+:declare -\1\2 :' } -- 2.26.2