This is the mail archive of the cygwin 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]
Other format: [Raw text]

RE: Probably stupid make question


Will shell scripts get

 -Dsomething=c:/Documents and Settings/whatever

as one argument, or three?
-----Original Message-----
From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com] On Behalf Of Christopher Faylor
Sent: Saturday, August 30, 2008 3:55 PM
To: cygwin@cygwin.com
Subject: Re: Probably stupid make question

On Sat, Aug 30, 2008 at 12:00:14AM -0700, Stephan Mueller wrote:
><offtopic>
>Yes, it's awful, but the batch file isn't totally at a loss.  If, in
>the batch file, you refer to parameters %1 %2 etc., as you've
>discovered, the parsing treats equals signs (and semicolons, and
>perhaps others; I forget) as spaces.  But, if you refer to %*, you can
>get the whole original command line, unmolested, inside the batch file.
>At worst, you can tokenize it yourself (with the cryptic but
>powerful-enough batch 'for' command, perhaps), but at best, you can
>just use it as is and pass it to your compiler.
>
>At one time, and perhaps still, Microsoft compilers support(ed) using #
>in place of = on the command line: -DSOMETHING#AVALUE.  I'm willing to
>bet it was to work around this misfeature of batch.
></offtopic>

This is all an argument for using Cygwin the way it was supposed to be
used - there are no .bat files on UNIX.  Use shell scripts instead.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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