🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.misc.discuss
Article #63028

Re: Where is "which"?

#63028
From: Steve Preston
Date: Tue, 14 Mar 1995 20:14
21 lines
1874 bytes
>>>>> In article <3k0v61$34h@nntp1.u.washington.edu>, olsenc@kodiak.ee.washington.edu (Clint Olsen) writes:
In article <3k0v61$34h@nntp1.u.washington.edu> olsenc@kodiak.ee.washington.edu (Clint Olsen) writes:


> In article <COLEMAN.95Mar12232748@redwood.skiles.gatech.edu>,
> Richard Coleman <coleman@redwood.skiles.gatech.edu> wrote:
>>>> Where is the "which" command.
Eelco> 'which' is an internal command from the C-shell and its derivatives (csh, tcsh).
>> Hmm..  I believe that "which" is typically a c-shell script. At
>> least it is on our system (Solaris 2.4).  But it is also a builtin for
>> tcsh, zsh

> Bash's equivalent is called "type".

If you use a non csh shell, then the csh script version of 'which' is
pretty useless, since it does not see your current PATH.

There is a which that works correctly.  You can find it, for example,
in gatekeeper.dec.com:/pub/usenet/comp.sources.misc/volume17/which6.
--
Steve Preston (spreston@gte.com)
Technical Details
Message-ID: <STEVE.95Mar14151447@eowyn.gte.com>
Path: arc1-ca.pugleaf.net!nntp.gmd.de!dearn!blekul11!ccsdec1.ufsia.ac.be!reks.uia.ac.be!idefix.CS.kuleuven.ac.be! Belgium.EU.net!EU.net!news.sprintlink.net!europa.chnt.gtegsc.com!news.mathworks.com!news2.near.net!ceylon!ceylon!steve
References: <3jfnjp$3f4@qualcomm.com> <D5AuDt.4yH@dutiws.twi.tudelft.nl> <COLEMAN.95Mar12232748@redwood.skiles.gatech.edu> <3k0v61$34h@nntp1.u.washington.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1025b4,68ac9cf3ff2e3960
X-Google-Attributes: gid1025b4,public
X-Google-ArrivalTime: 1995-03-15 10:32:30 PST
Path: arc1-ca.pugleaf.net!nntp.gmd.de!dearn!blekul11!ccsdec1.ufsia.ac.be!reks.uia.ac.be!idefix.CS.kuleuven.ac.be! Belgium.EU.net!EU.net!news.sprintlink.net!europa.chnt.gtegsc.com!news.mathworks.com!news2.near.net!ceylon!ceylon!steve
From: steve@eowyn.gte.com (Steve Preston)
Newsgroups: gnu.misc.discuss
Subject: Re: Where is "which"?
Date: 14 Mar 1995 20:14:47 GMT
Organization: GTE Laboratories
Lines: 21
Message-ID: <STEVE.95Mar14151447@eowyn.gte.com>
References: <3jfnjp$3f4@qualcomm.com> <D5AuDt.4yH@dutiws.twi.tudelft.nl>
 <COLEMAN.95Mar12232748@redwood.skiles.gatech.edu>
 <3k0v61$34h@nntp1.u.washington.edu>
NNTP-Posting-Host: eowyn.gte.com
In-reply-to: olsenc@kodiak.ee.washington.edu's message of 13 Mar 1995 08:19:13 GMT