X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Thu, 15 May 2008 18:20:29 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Makefile command interpreter Message-ID: <20080515222029.GA2131@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <482CB5B6.3040002@chiptech.co.nz> 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 Fri, May 16, 2008 at 10:14:14AM +1200, 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? Cygwin's version of make is intended to be used with POSIX shells. cmd.exe doesn't qualify. make is going to always append a "-c" to any SHELL invocation that you specify so no amount of makefile magic is going to work around that. If you need a version of make which understands cmd.exe then I'd suggest trying mingw: http://mingw.org/ . That project is designed to provide windows tools with a minimal nod towards POSIX. 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/