X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: Date: Thu, 15 May 2008 18:20:00 -0400 From: "Mark J. Reed" To: cygwin AT cygwin DOT com Subject: Re: Makefile command interpreter In-Reply-To: <482CB5B6.3040002@chiptech.co.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <482BAAB9 DOT 6080102 AT chiptech DOT co DOT nz> <20080515080556 DOT GA6514 AT trikaliotis DOT net> <482CB5B6 DOT 3040002 AT chiptech DOT co DOT nz> X-Google-Sender-Auth: 57cb1300630a0cf7 X-IsSubscribed: yes 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 The problem is that Make invokes the shell with -c, e.g. bash -c "gcc ..." cmd.exe doesn't understand that and apparently ignores it. But when you supply /c, yielding cmd.exe /c -c "gcc ..." It complains. Basocally, make expects a shell that accepts Unix shell args. You could create a wrapper for the windows shell that does, maybe, but you can't use the windows shell directly from Cygwin's make. On 5/15/08, Volker Kuhlmann wrote: >>> Setting export SHELL=cmd.exe >>> calls cmd.exe alright, but then sits there forever waiting for input. >> >> Just a wild guess, as I have not tested this: >> >> Have you tried cmd.exe with the /c switch? If cmd.exe is called without >> that switch, it expects input from the standard input (console). > > Yes, tried that, the result always is > > '-c' is not recognized as an internal or external command, > operable program or batch file. > > Something is messing with the argument list. > > No difference between these two there: > > SHELL=cmd.exe /C > SHELL:=/cygdrive/c/windows/system32/cmd.exe -- /C > > Looks like that might be on the right track, but how do I get arguments > across verbatim? > > Thanks, > > Volker > > -- > Volker Kuhlmann > Chiptech Ltd, PO Box 41088, Ferrymead 8247, New Zealand > 11a Settlers Crescent, Christchurch 8023 > ph +64 3 384 7788, fax +64 3 384 7789 > > -- > 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/ > > -- Sent from Gmail for mobile | mobile.google.com Mark J. Reed -- 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/