delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/04/21/07:25:53

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <20000421122552.19864.qmail@web110.yahoomail.com>
Date: Fri, 21 Apr 2000 05:25:52 -0700 (PDT)
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: earnie_boyd AT yahoo DOT com
Subject: RE: Cygwin 1.0: Error when launching MSDOS bat file from bash on Wind ows 2000
To: "Berche, Guillaume" <Guillaume DOT Berche AT mkms DOT xerox DOT com>,
"'cygwin AT sourceware DOT cygnus DOT com'" <cygwin AT sourceware DOT cygnus DOT com>
MIME-Version: 1.0

--- "Berche, Guillaume" <Guillaume DOT Berche AT mkms DOT xerox DOT com> wrote:
> Earnie,
> 
> > 
> > Hmm... Why would one expect a DOS bat file to execute under 
> > BASH???  However,
> > it is possible to start the DOS COMMAND INTERPRETER from BASH 
> > by specifying it
> > so:
> > 
> > #! c:/Windows/System32/cmd.exe /c
> > REM start of MSDOS test
> > PAUSE
> > REM end of MSDOS test
> > 
> > However you need a noop program named #.exe that is on the 
> > Windows PATH so that
> > the DOS COMMAND INTERPRETER doesn't croak on the #! line.
> > 
> 
> Well, I think that cygwin handles the launching of the BAT files by itself if
> I understand well the documentation (extract of
> C:\Cygwin\html\1_GS\int02.html follows)
> 
> "File permissions
> 
> On Windows 95/98 systems, files are always readable, and Cygwin uses the
> native read-only mode to determine if they are writable. Files are considered
> to be executable if the filename ends with .bat, .com or .exe, or if its
> content starts with #!. Consequently, the chmod command can only affect the
> 'w' mode, whereas it silently ignores actions involving the other modes.
> [...]
> "
> 
> I assume that while making the .bat files executable, Cygwin also handles
> their execution throught the DOS command shell.
> 

Yep.  I just tried your test and your assumption would have to be correct.  I
agree with your bug report.  Would you care to submit a patch?

> 
> Well, the mechanism is working fine with NT 4.0 but on Windows 2000 it fails
> (or it might be related to some other configuration params I missed ?!) If
> anybody have an idea of how to correct this I am very interested!
> 

Actually, it fails on NT4 as well.



=====
---
   Earnie Boyd: <mailto:earnie_boyd AT yahoo DOT com>
            __Cygwin: POSIX on Windows__
Cygwin Newbies: <http://www.freeyellow.com/members5/gw32/index.html>
           __Minimalist GNU for Windows__
  Mingw32 List: <http://www.egroups.com/group/mingw32/>
    Mingw Home: <http://www.mingw.org/>

__________________________________________________
Do You Yahoo!?
Send online invitations with Yahoo! Invites.
http://invites.yahoo.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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