delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/08/30/16:39:00

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
From: Phil Smith <phil AT voltage DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Date: Sat, 30 Aug 2008 13:35:11 -0700
Subject: RE: Probably stupid make question
Message-ID: <B870629719727B4BA82A6C06A31C291207429E091B@hqmailsvr01.voltage.com>
References: <B870629719727B4BA82A6C06A31C291207429E06EA AT hqmailsvr01 DOT voltage DOT com> <48B706FB DOT 4CAE7693 AT dessent DOT net> <20080828203234 DOT GB17369 AT ednor DOT casa DOT cgf DOT cx> <B870629719727B4BA82A6C06A31C291207429E0893 AT hqmailsvr01 DOT voltage DOT com> <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
acceptlanguage: en-US
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: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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:
><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/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019