autoconf-patches
[Top][All Lists]
Advanced

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

Re: double-quoted command substitutions


From: Ralf Wildenhues
Subject: Re: double-quoted command substitutions
Date: Thu, 6 Apr 2006 19:52:05 +0200
User-agent: Mutt/1.5.9i

Hello,

* Noah Misch wrote on Tue, Apr 04, 2006 at 08:13:22PM CEST:
> On Sun, Feb 19, 2006 at 07:55:53PM +0100, Ralf Wildenhues wrote:
> >     * doc/autoconf.texi (Shell Substitutions): Mention the MSYS
> >     shell issue with double-quoted command substitutions of native
> >     commands.
> 
> This looks valuable.  Is installing it now reasonable?

I think so.  I've installed it.

> >     * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Work around the bug as
> >     a safety measure, we don't want to rely on a specific EOL
> >     representation.
> >     * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Likewise.
> >     * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Likewise.
> >     * lib/autotest/general.m4 (AT_INIT): Likewise.
> 
> Based on Keith's followup, I understand that these changes are optional.

Dropped.

Cheers,
Ralf

        * doc/autoconf.texi (Shell Substitutions): Mention the MSYS
        shell issue with double-quoted command substitutions of native
        commands.
        Reported to MSYS by Mark Cave-Ayland, to Autoconf by Keith
        Marshall.

Index: doc/autoconf.texi
===================================================================
RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v
retrieving revision 1.949
diff -u -r1.949 autoconf.texi
--- doc/autoconf.texi   15 Feb 2006 07:00:29 -0000      1.949
+++ doc/autoconf.texi   19 Feb 2006 18:42:59 -0000
@@ -10535,6 +10584,17 @@
 @noindent
 The result of @samp{foo=`exit 1`} is left as an exercise to the reader.
 
+The MSYS shell leaves a stray byte in the expansion of a double-quoted
+command substitution of a native program, if the end of the substution
+is not aligned with the end of the double quote.  This may be worked
+around by inserting another pair of quotes:
+
address@hidden
+$ @kbd{echo "`printf 'foo\r\n'` bar" > broken}
+$ @kbd{echo "`printf 'foo\r\n'`"" bar" | cmp - broken}
+- broken differ: char 4, line 1
address@hidden example
+
 
 @item $(@var{commands})
 @cindex $(@var{commands})




reply via email to

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