X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org From: Phil Smith To: "cygwin AT cygwin DOT com" Date: Sat, 30 Aug 2008 13:35:11 -0700 Subject: RE: Probably stupid make question Message-ID: References: <48B706FB DOT 4CAE7693 AT dessent DOT net> <20080828203234 DOT GB17369 AT ednor DOT casa DOT cgf DOT cx> <2A9FABB3664AF8459CBADA1CE4E4024642D52EA2B1 AT DF-MASTIFF-MSG DOT exchange DOT corp DOT microsoft DOT com> <20080830195510 DOT GB20923 AT ednor DOT casa DOT cgf DOT cx> In-Reply-To: <20080830195510.GB20923@ednor.casa.cgf.cx> Accept-Language: en-US Content-Language: en-US acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=4.65.7161:2.4.4,1.2.40,4.0.164 definitions=2008-08-30_01:2008-08-28,2008-08-29,2008-08-30 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=3.1.0-0805090000 definitions=main-0808300101 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id m7UKcxbE028117 Will shell scripts get -Dsomething=c:/Documents and Settings/whatever as one argument, or three? -----Original Message----- From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of Christopher Faylor Sent: Saturday, August 30, 2008 3:55 PM To: cygwin AT cygwin DOT com Subject: Re: Probably stupid make question On Sat, Aug 30, 2008 at 12:00:14AM -0700, Stephan Mueller wrote: > >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. > 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/