diff options
author | sf <sf@13f79535-47bb-0310-9956-ffa450edef68> | 2011-10-15 21:06:46 +0000 |
---|---|---|
committer | sf <sf@13f79535-47bb-0310-9956-ffa450edef68> | 2011-10-15 21:06:46 +0000 |
commit | 93175c669e1872e318e2e3580e8e7cca435117f9 (patch) | |
tree | 8299a95e0f34288d025fe908b5b7b883cf67c900 | |
parent | c8d8b9c9cc202fc73944d7d3493c7ec9300ba72b (diff) | |
download | libapr-93175c669e1872e318e2e3580e8e7cca435117f9.tar.gz |
Backport r1183686:
Fix APR_RESTORE_THE_ENVIRONMENT if the original variable was a single space
Autoconf selects a POSIX shell for us, so we can get rid of sed, here.
PR 50334
Submitted by: Nathan Phillip Brink <binki gentoo org>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1183710 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | build/apr_common.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/apr_common.m4 b/build/apr_common.m4 index 3708d6a23..0910daaff 100644 --- a/build/apr_common.m4 +++ b/build/apr_common.m4 @@ -209,7 +209,7 @@ else if test "x$apr_ste_save_$1" = "x$$1"; then $2$1= else - $2$1=`echo $$1 | sed -e "s%${apr_ste_save_$1}%%"` + $2$1="${$1#"${apr_ste_save_$1}"}" $1="$apr_ste_save_$1" fi fi |