Subject: Re: /usr/bin/which is a csh script!!?!
To: George Michaelson <ggm@apnic.net>
From: David Maxwell <david@vex.net>
List: current-users
Date: 04/29/2003 21:25:02
On Wed, Apr 30, 2003 at 10:33:46AM +1000, George Michaelson wrote:
> 
> wow. or maybe I mean s/wow/ow/
> 
> I didn't think 'we' did that any more.
> 
> csh scripts don't reflect on non-csh user initialization much. So if something
> is in a /bin/sh /etc/profile or a sh/bash/ksh shell initialization space,
> the which command won't 'find' it because it doesn't wind up in the path=(...)
> space.
> 
> Hmm. This might be me needing cluebat attack. Should I be doing shell PATH
> initialization in places which csh honours? What are they these days?

In no particular order, see:

http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=10611
http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=3191
http://mail-index.netbsd.org/netbsd-bugs/2000/07/19/0000.html
http://mail-index.netbsd.org/netbsd-bugs/2000/07/20/0008.html
http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=13462

Or the rest of the long threads in the mailing list archives.

-- 
David Maxwell, david@vex.net|david@maxwell.net --> Although some of you out
there might find a microwave oven controlled by a Unix system an attractive
idea, controlling a microwave oven is easily accomplished with the smallest
of microcontrollers. - Russ Hersch - (Microcontroller primer and FAQ)