diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-12-13 01:53:46 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-12-13 01:53:46 +0000 |
commit | e9d8b72f72055c0ba2eb6b6131ad1bd09d7a6e3d (patch) | |
tree | ef78181c2d8633758f2fcf3bcaf733537ae2df6c | |
parent | afdbf28c324422f18fdf58111bfc1451c2a4022d (diff) | |
download | portage-e9d8b72f72055c0ba2eb6b6131ad1bd09d7a6e3d.tar.gz portage-e9d8b72f72055c0ba2eb6b6131ad1bd09d7a6e3d.tar.bz2 portage-e9d8b72f72055c0ba2eb6b6131ad1bd09d7a6e3d.zip |
In filter_readonly_variables(), replace 'declare -r ' with 'declare '
instead of removing it completely.
svn path=/main/trunk/; revision=8891
-rwxr-xr-x | bin/ebuild.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 :' } |