In filter_readonly_variables(), replace 'declare -r ' with 'declare '
authorZac Medico <zmedico@gentoo.org>
Thu, 13 Dec 2007 01:53:46 +0000 (01:53 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 13 Dec 2007 01:53:46 +0000 (01:53 -0000)
instead of removing it completely.

svn path=/main/trunk/; revision=8891

bin/ebuild.sh

index fbccce70ce32ad8f7c7f1889e113fd865654f898..45437bc2d6cc18295f4583c26f9c65fb00934390 100755 (executable)
@@ -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 :'
 }