delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/15/18:14:52

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Mon, 15 Jan 2001 18:14:17 -0500
From: Christopher Faylor <cgf AT redhat DOT com>
To: Earnie Boyd <cygwin AT cygwin DOT com>
Subject: Re: Running .bat files from CYGWIN
Message-ID: <20010115181417.A29503@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: Earnie Boyd <cygwin AT cygwin DOT com>
References: <4 DOT 3 DOT 1 DOT 2 DOT 20010115124313 DOT 023299b8 AT pop DOT ma DOT ultranet DOT com> <4 DOT 3 DOT 1 DOT 2 DOT 20010115135445 DOT 022266d8 AT pop DOT ma DOT ultranet DOT com> <3A635A1C DOT 40484FFE AT yahoo DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.3.11i
In-Reply-To: <3A635A1C.40484FFE@yahoo.com>; from earnie_boyd@yahoo.com on Mon, Jan 15, 2001 at 03:14:20PM -0500

On Mon, Jan 15, 2001 at 03:14:20PM -0500, Earnie Boyd wrote:
>"Larry Hall (RFK Partners, Inc)" wrote:
>> 
>> At 01:50 PM 1/15/2001, Earnie Boyd wrote:
>> >
>> >Create a noop program named #!.exe and put it in command.com/cmd.exe
>> >PATH.
>> >Then at the top of your .bat file put
>> >   #! c:\\path\\to\\cmd.exe /c
>> >and this will cause Cygwin to think it's executable and execute it.
>> >
>> 
>> Right but these batch files won't run from cmd.exe/command.com like this
>> though.  Still, its a way to "convert" batch files to run under the Cygwin
>> shells if you don't need them to run under cmd.exe/command.com anymore.
>>
>
>Huh.  Of course they will continue to work under cmd.exe/command.com, if
>not, they wouldn't work under Cygwin shells either.  It's the reason you
>create a noop program named `#!.exe'.  The cmd.exe/command.com shells
>actually execute the program which does nothing more than return 0.

Indeed, it sounds like a clever solution to the problem.

cgf

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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