mirror of
git://git.sv.gnu.org/autoconf
synced 2024-12-09 02:10:22 +08:00
* 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:
parent
d209422b6b
commit
d370eb6e4e
@ -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.
|
||||
|
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user