diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-12-13 03:54:40 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-12-13 03:54:40 +0000 |
commit | 4fc8809c8e557aa2cae894884ae558354516b9a9 (patch) | |
tree | 726dac9d850fe985e3d1c913fbe1deb066b229f2 | |
parent | 5ea185c01922d5725dce04ad7dbdc903960ee435 (diff) | |
download | portage-4fc8809c8e557aa2cae894884ae558354516b9a9.tar.gz portage-4fc8809c8e557aa2cae894884ae558354516b9a9.tar.bz2 portage-4fc8809c8e557aa2cae894884ae558354516b9a9.zip |
Use the sed -r option to enable extended regular expressions so that
commonly used characters like (, ), and + don't have to be escaped.
svn path=/main/trunk/; revision=8893
-rwxr-xr-x | bin/ebuild.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 5e09daa69..50222eb6e 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -1425,9 +1425,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. - "${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 :' + "${PORTAGE_BIN_PATH}"/filter-bash-environment.py "${var_grep}" | sed -r \ + -e 's:^declare[[:space:]]+-r[[:space:]]+:declare :' \ + -e 's:^declare[[:space:]]+-([[:alnum:]]*)r([[:alnum:]]*)[[:space:]]+:declare -\1\2 :' } # @FUNCTION: preprocess_ebuild_env |