delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/05/08/08:58:59

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
X-Apparently-From: <earnie?boyd AT yahoo DOT com>
Message-ID: <3AF7ED4B.3E120086@yahoo.com>
Date: Tue, 08 May 2001 08:57:47 -0400
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: Cygwin Users <cygwin AT cygwin DOT com>
X-Mailer: Mozilla 4.76 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Cygwin Users <cygwin AT cygwin DOT com>
CC: "Karr, David" <david DOT karr AT cacheflow DOT com>
Subject: Re: Status on issue with PATH ignoring scripts with same name as exesin
1.3.1?
References: <2C08D4EECBDED41184BB00D0B747334202FB437B AT exchanger DOT cacheflow DOT com> <3AF7EB79 DOT 1A180273 AT yahoo DOT com>

Earnie Boyd wrote:
> 
> "Karr, David" wrote:
> >
> > I haven't reexamined this issue in several days.  I have "wrapper" scripts
> > with the same name as exes later in the path.  This worked fine in 1.1.8,
> > but now that I'm trying to use 1.3.1, it doesn't work anymore.  When the
> > shell does a PATH search, it ignores the script and just uses the exe.  I'm
> > just looking for some information on this.  I can downgrade my cygwin1.dll
> > to 1.1.8 for now.
> >
> 
> Why would anyone depend on this working?  It is simply an implementation
> specific issue.  I suggest instead of downgrading that you rename your
> scripts.  The simple reason is that Cygwin stat's foo for foo.exe and if
> foo.exe is what is being executed by the shell then IMNSHO it's correct
> the way it is now and broken before.
> 

Oh, if you end the name with a period then it executes the script
instead of the exe.  E.G.:  I have a program foo.exe that output bar.  I
have a script foo that echoes foo.  If I execute `foo' I get bar but if
I execute `foo.' I get foo.

Earnie.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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