delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/04/30/17:30:41

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
Message-ID: <2C08D4EECBDED41184BB00D0B747334202FB4350@exchanger.cacheflow.com>
From: "Karr, David" <david DOT karr AT cacheflow DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: RE: Strange PATH behavior with 1.3.1
Date: Mon, 30 Apr 2001 14:17:32 -0700
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)

After I backed up the version of "cygwin" from 1.3.1 to 1.1.8, I got this
functionality back.  I need to know whether this is a bug, or whether using
1.3.1 requires some new configuration I'm not aware of, in order to get this
to work.

-----Original Message-----
From: Karr, David [mailto:david DOT karr AT cacheflow DOT com]
Sent: Monday, April 30, 2001 1:45 PM
To: 'cygwin AT cygwin DOT com'
Subject: Strange PATH behavior with 1.3.1


I use a technique of putting shell script "wrappers" earlier in the path
than programs being "wrapped".  I also use a script that can return the
second (or nth) occurrence of an executable in the PATH.  This has worked
fine for a long time, at 2 jobs before this, and here, when I had 1.1.8
installed.  I just installed 1.3.1 a few minutes ago, and now I see that
this doesn't work anymore.

I can ask my script which manually searches the path to return all the
occurrences of a particular executable name, in the order it finds them.
Using this, I see that I have my "wrapper" script earlier in the PATH than
the program it's wrapping.  However, when I execute the command, it never
executes my wrapper script, it always executes the program I'm trying to
wrap.  The output of "type -p" shows that it didn't find my wrapper script
first.  The output of "type -a" shows that it didn't find my wrapper script
at ALL.  If I specify the full path to my wrapper script, it executes fine.

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

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