]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
bootstrap: escape quotes properly in generated functions.
authorGary V. Vaughan <gary@gnu.org>
Thu, 8 Dec 2011 05:24:00 +0000 (12:24 +0700)
committerGary V. Vaughan <gary@gnu.org>
Thu, 8 Dec 2011 05:33:28 +0000 (12:33 +0700)
* bootstrap: Although not a real bug, for consistency, be sure
to correctly escape single quotes inside a single quoted
function generator.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
bootstrap

index bfdbfbdc494d20cd8b12d34b57cd7a67ae0a36dd..28f85b03b28b19418f567eb1fbc5c11197513a02 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -1018,7 +1018,7 @@ for tool in autoconf libtoolize autopoint; do
     # in order for `func_find_tool` to run.
     ${require_'$tool'-:}
 
-    printf '%s\n' "$buildreq" |func_grep_q '\''^[       ]*'$tool\'' || {
+    printf '\''%s\n'\'' "$buildreq" |func_grep_q '\''^[         ]*'$tool\'' || {
       func_extract_trace '$m'
       _G_version=$func_extract_trace_result
       test -n "$_G_version" && {