delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/05/15/18:21:08

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 <cgf-use-the-mailinglist-please AT cygwin DOT com>
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
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
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 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/

- Raw text -


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