delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/08/30/15:55:52

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Sat, 30 Aug 2008 15:55:11 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Probably stupid make question
Message-ID: <20080830195510.GB20923@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT 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>
MIME-Version: 1.0
In-Reply-To: <2A9FABB3664AF8459CBADA1CE4E4024642D52EA2B1@DF-MASTIFF-MSG.exchange.corp.microsoft.com>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

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/

- Raw text -


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