make-w32
[Top][All Lists]
Advanced

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

Re: mingw make problem


From: Eli Zaretskii
Subject: Re: mingw make problem
Date: Fri, 18 Aug 2006 22:02:05 +0300

> Date: Fri, 18 Aug 2006 14:00:55 -0400
> From: "William A. Hoffman" <address@hidden>
> Cc: address@hidden
> 
> >If you run this program from that makefile you will see that the command
> >line actually received by the program is
> >
> >  c:\full\path\to\runDump.exe "a.c b.c"
> >
> >Note that if you run the program from a command prompt with the line
> >
> >  c:\full\path\to\runDump.exe a.c" "b.c
> >
> >it will see the single argument {a.c b.c}.  I suspect that the make
> >implementation is removing the outer layer of quotes from {"a.c" "b.c"}
> >to leave this broken command line behind.

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.

What happens on your system?  Do you really see only one argument?




reply via email to

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