www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/29/08:04:15

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
To: cygwin AT cygwin DOT com
From: Robert R Schneck <schneck AT math DOT berkeley DOT edu>
Subject: Re: Fun with #! (aka shebang) and filenames ending in .exe
Date: Mon, 29 Mar 2004 13:03:48 +0000 (UTC)
Lines: 17
Message-ID: <c496rj$sdb$1@sea.gmane.org>
References: <62148 DOT 24 DOT 126 DOT 73 DOT 164 DOT 1080436603 DOT squirrel AT webmail4 DOT pair DOT com> <6 DOT 0 DOT 1 DOT 1 DOT 0 DOT 20040328135645 DOT 02865c58 AT 127 DOT 0 DOT 0 DOT 1> <40672AF0 DOT 7030506 AT kegel DOT com> <Pine DOT GSO DOT 4 DOT 56 DOT 0403281820390 DOT 18236 AT slinky DOT cs DOT nyu DOT edu>
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: 80.44.149.159
User-Agent: slrn/0.9.8.0 (CYGWIN_NT-5.1)

Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu> wrote:
> 'Ware of this issue:
>
> <QUOTE from http://cygwin.com/cygwin-ug-net/using-specialnames.html#AEN846>
>   If a shell script myprog and a program myprog.exe coexist in a
>   directory, the program has precedence and is selected for execution of
>   myprog.
> </QUOTE>

The original poster was actually pointing out a different issue:
If the shell script itself is named myprog.exe, it is executed as
a Windows executable rather than as a shell script.  

It would be nice if the file could be checked for beginning with "#!",
but perhaps the only real solution is Don't Do That, Then.

Robert


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