bug-autoconf
[Top][All Lists]
Advanced

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

Re: Typo in shell substitution example in autoconf manual.


From: Eric Blake
Subject: Re: Typo in shell substitution example in autoconf manual.
Date: Fri, 16 Sep 2011 13:39:10 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.20) Gecko/20110831 Fedora/3.1.12-2.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.12

On 09/16/2011 01:22 PM, Nick Bowler wrote:
    $ bash -c 't="a  b\"'\''}\\"; echo "${a-$t}"'
    b  c"'}\

I had a double take upon reading this.  I think the output for all three
of those example commands should read

   a  b"'}\

rather than

   b  c"'}\

Thanks for the report. I'm pushing this to fix it (I actually changed the input of $t to start with 'b c' rather than fixing the output, so that the use of $a doesn't overlap with the output).

From 2a9b772222423b28ad741ab74407f680d2caaadd Mon Sep 17 00:00:00 2001
From: Eric Blake <address@hidden>
Date: Fri, 16 Sep 2011 13:37:38 -0600
Subject: [PATCH] docs: fix typo in shell example

* doc/autoconf.texi (Shell Substitutions): Fix typo.
* THANKS: Update.
Reported by Nick Bowler.

Signed-off-by: Eric Blake <address@hidden>
---
 ChangeLog         |    7 +++++++
 THANKS            |    1 +
 doc/autoconf.texi |    6 +++---
 3 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 01df9ad..76b283c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-09-16  Eric Blake  <address@hidden>
+
+       docs: fix typo in shell example
+       * doc/autoconf.texi (Shell Substitutions): Fix typo.
+       * THANKS: Update.
+       Reported by Nick Bowler.
+
 2011-09-14  Stefano Lattarini  <address@hidden>

        docs: more details about make VPATH rewriting woes
diff --git a/THANKS b/THANKS
index 51188aa..867c0d8 100644
--- a/THANKS
+++ b/THANKS
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 3d99012..f202c10 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -15942,11 +15942,11 @@ Shell Substitutions
 the expression needing quoting.

 @example
-$ @kbd{/bin/sh -c 't="a  b\"'\''@}\\"; echo "address@hidden@}"'}
+$ @kbd{/bin/sh -c 't="b  c\"'\''@}\\"; echo "address@hidden@}"'}
 b  c"'@}\
-$ @kbd{ksh -c 't="a  b\"'\''@}\\"; echo "address@hidden@}"'}
+$ @kbd{ksh -c 't="b  c\"'\''@}\\"; echo "address@hidden@}"'}
 b  c"'@}\
-$ @kbd{bash -c 't="a  b\"'\''@}\\"; echo "address@hidden@}"'}
+$ @kbd{bash -c 't="b  c\"'\''@}\\"; echo "address@hidden@}"'}
 b  c"'@}\
 @end example

--
1.7.4.4

--
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

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