* 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.
This commit is contained in:
Ralf Wildenhues 2006-04-06 17:51:22 +00:00
parent d209422b6b
commit d370eb6e4e
2 changed files with 17 additions and 0 deletions

View File

@ -1,5 +1,11 @@
2006-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* 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.
* Makefile.maint (sc_cast_of_argument_to_free): Do not fail when
no file matches the glob, discard the warning, set `nullglob'.
(syntax-check): Likewise.

View File

@ -10975,6 +10975,17 @@ $ @kbd{test -z "`cd /`" && pwd}
@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:
@example
$ @kbd{echo "`printf 'foo\r\n'` bar" > broken}
$ @kbd{echo "`printf 'foo\r\n'`"" bar" | cmp - broken}
- broken differ: char 4, line 1
@end example
@item $(@var{commands})
@cindex $(@var{commands})