At 03:02 PM 8/18/2006, Eli Zaretskii wrote: >I tried this program, and it verified that there's no problem on my >system, where sh.exe is a native Windows shell. Here's what I get >with this Makefile rule: > >all: > d:/full/path/to/rundump.exe "a.c" "b.c" > >d:/full/path/to/rundump.exe "a.c" "b.c" >command line = {d:\full\path\to\rundump.exe a.c b.c} >argv[0] = {d:\full\path\to\rundump.exe} >argv[1] = {a.c} >argv[2] = {b.c} > >So the MinGW binary of Make does not remove the outer layer of quotes, >and the subsidiary program sees 2 separate arguments.
// from cygwin: $ ./make.exe -f mk runit c:/hoffman/My\ Builds/CMakeDev/Tests/COnly/b/run.exe "a.c" "b.c" command line = {"c:\hoffman\My Builds\CMakeDev\Tests\COnly\b\run.exe" "a.c b.c"} argv[0] = {c:\hoffman\My Builds\CMakeDev\Tests\COnly\b\run.exe} argv[1] = {a.c b.c} // from msys: c:/hoffman/My\ Builds/CMakeDev/Tests/COnly/b/run.exe "a.c" "b.c" CreateProcess(C:\msys\1.0\bin\sh.exe,C:/msys/1.0/bin/sh.exe -c "c:/hoffman/My\ Builds/CMakeDev/Tests/COnly/b/run.exe \"a.c\" \"b.c\"",...) /usr/bin/sh: -c: line 3: syntax error: unexpected end of file // from cmd.com windows shell C:\Hoffman\My Builds\CMakeDev\Tests\COnly\b>.\make -f mk runit "c:/hoffman/My Builds/CMakeDev/Tests/COnly/b/run.exe" "a.c" "b.c" command line = {"c:/hoffman/My Builds/CMakeDev/Tests/COnly/b/run.exe" "a.c" "b.c "} argv[0] = {c:/hoffman/My Builds/CMakeDev/Tests/COnly/b/run.exe} argv[1] = {a.c} argv[2] = {b.c} -Bill _______________________________________________ Make-w32 mailing list Make-w32@gnu.org http://lists.gnu.org/mailman/listinfo/make-w32