about summary refs log tree commit diff
path: root/configure
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-08-20 13:51:46 -0400
committerRich Felker <dalias@aerifal.cx>2013-08-20 13:51:46 -0400
commite449974dc54562bcb9a8a4c578e92d3f12ca67bb (patch)
treeb8aad10e190c538de8663f054232d771e2386f7f /configure
parent4681aae23a283742d17baff6f1a5692fbf9a376f (diff)
downloadmusl-e449974dc54562bcb9a8a4c578e92d3f12ca67bb.tar.gz
musl-e449974dc54562bcb9a8a4c578e92d3f12ca67bb.tar.xz
musl-e449974dc54562bcb9a8a4c578e92d3f12ca67bb.zip
fix two bugs in sed code configure uses to save command line
one place where semicolon (non-portable) was still used in place of
separate -e options (copied over from an old version of this code),
and use of a literal slash in the bracket expression for the final
command, despite slash being used as the delimiter for the s command.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index dfd3d502..469b7d29 100755
--- a/configure
+++ b/configure
@@ -49,7 +49,7 @@ quote () {
 tr '\n' ' ' <<EOF | grep '^[-[:alnum:]_=,./:]* $' >/dev/null 2>&1 && { echo "$1" ; return 0 ; }
 $1
 EOF
-printf %s\\n "$1" | sed -e "s/'/'\\\\''/g" -e "1s/^/'/;\$s/\$/'/" -e "s/^'\([-[:alnum:]_,./:]*\)=\(.*\)\$/\1='\2/"
+printf %s\\n "$1" | sed -e "s/'/'\\\\''/g" -e "1s/^/'/" -e "\$s/\$/'/" -e "s#^'\([-[:alnum:]_,./:]*\)=\(.*\)\$#\1='\2#"
 }
 echo () { printf "%s\n" "$*" ; }
 fail () { echo "$*" ; exit 1 ; }