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

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <f60fe000805151520m32629ec8s7d27b60378bf81e@mail.gmail.com>
Date: Thu, 15 May 2008 18:20:00 -0400
From: "Mark J. Reed" <markjreed AT mail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Makefile command interpreter
In-Reply-To: <482CB5B6.3040002@chiptech.co.nz>
MIME-Version: 1.0
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
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

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 <volker AT chiptech DOT co DOT nz> 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 <volker DOT kuhlmann AT chiptech DOT co DOT nz>
> 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 <markjreed AT gmail DOT com>

--
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