Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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: 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> 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 wrote: > 'Ware of this issue: > > > 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. > 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/