This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Make quoted strings problem running from cmd.exe...


No need to bet; you hit the nail on the head.

"Cygwin.  Don't leave Unix without it." -- me

> -----Original Message-----
> From: Earnie Boyd [mailto:earnie_boyd@yahoo.com]
> Sent: Tuesday, August 17, 1999 6:19 PM
> To: John Wiersba; cygwin@sourceware.cygnus.com; 
> 'kevin_hill@bigfoot.com'
> Subject: RE: Make quoted strings problem running from cmd.exe...
> 
> 
> Hmm.  I bet you used cygwin to build your program didn't you. 
>  Whereas Kevin
> used MSVC to build his.  If you build your program with 
> mingw32, you'll have
> the same problem as Kevin.
> 
> Earnie.
> 
> --- John Wiersba <John.Wiersba@medstat.com> wrote:
> > I'm running make 3.75 with no problems.  Maybe this is a 
> binary vs text
> > problem (I'm running all binary mounts).
> > 
> > file prtcmd.c
> > 	#include "stdio.h"
> > 	main(int argc, char ** argv) {
> > 		int j;
> > 		for (j = 0; j < argc; ++j) {
> > 			printf("arg %d: <%s>\n", j, argv[j]);
> > 		}
> > 		exit(0);
> > 	}
> > 
> > $ gcc prtcmd.c
> > $ mv a.exe prtcmd.exe
> > 
> > file Makefile
> > 	a:
> > 		prtcmd a "b c" d
> > 		prtcmd -i "BEGIN { $$^W=1; }"
> > 
> > output running bash and cmd.exe is identical:
> > 
> > $ make -v
> > GNU Make version 3.75, by Richard Stallman and Roland McGrath.
> > Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96
> >         Free Software Foundation, Inc.
> > This is free software; see the source for copying conditions.
> > There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
> > PARTICULAR PURPOSE.
> > 
> > Report bugs to <bug-gnu-utils@prep.ai.mit.edu>.
> > 
> > $ make
> > prtcmd a "b c" d
> > arg 0: <prtcmd>
> > arg 1: <a>
> > arg 2: <b c>
> > arg 3: <d>
> > prtcmd -i "BEGIN { $^W=1; }"
> > arg 0: <prtcmd>
> > arg 1: <-i>
> > arg 2: <BEGIN { $^W=1; }>
> > 
> > > -----Original Message-----
> > > From: Glenn Spell [mailto:glenn@gs.fay.nc.us]
> > > Sent: Tuesday, August 17, 1999 5:41 PM
> > > To: cygwin@sourceware.cygnus.com
> > > Subject: Re: Make quoted strings problem running from cmd.exe...
> > > 
> > > 
> > > On 18 Aug 1999 around 9:05AM (+1200) Kevin Hill wrote:
> > > 
> > > > My problem now is not "is this a bug or strange feature in
> > > > make.exe?",  but more one of "how can I fix this so I 
> can move on
> > > > and get on with my project?".
> > > 
> > > You might try upgrading from 3.75 to 3.77. There were 
> various changes
> > > in the way make reads lines in makefiles since 3.75.
> > > 
> > > -glenn
> > > 
> > > -- 
> > >  )      Glenn Spell <glenn@gs.fay.nc.us>      )   _       _____
> > >  )   Fayetteville, North Carolina, U. S. A.   )_ (__\____o /_/_ |
> > >  )  _  _  _  _  _  _  _  _  _  _  _  _  _  _  )   >-----._/_/__]>
> > >  )- blue skies - happy trails - sweet dreams -)             `0  |
> > > 
> > > --
> > > Want to unsubscribe from this list?
> > > Send a message to cygwin-unsubscribe@sourceware.cygnus.com
> > > 
> > 
> > --
> > Want to unsubscribe from this list?
> > Send a message to cygwin-unsubscribe@sourceware.cygnus.com
> > 
> > 
> 
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]