libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: [PATCH 5/5] bootstrap: escape quotes properly in generated function


From: Gary V. Vaughan
Subject: FYI: [PATCH 5/5] bootstrap: escape quotes properly in generated functions.
Date: Thu, 8 Dec 2011 12:34:31 +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 <address@hidden>
---
 bootstrap |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/bootstrap b/bootstrap
index 5cd9cb0..d0567be 100755
--- 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" && {
-- 
1.7.7.4

Cheers,
-- 
Gary V. Vaughan (gary AT gnu DOT org)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]