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 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: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Precedence: bulk List-Id: List-Unsubscribe: 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 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/