🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.misc.discuss
Article #63121

Re: Where is "which"?

#63121
From: MYNOTT S T
Date: Wed, 15 Mar 1995 11:31
25 lines
1792 bytes
Richard Coleman (coleman@redwood.skiles.gatech.edu) wrote:
: >> Where is the "which" command.  I have raided the OS/2 archives,
: >> but I cannot find a "which" in GNUSUTIL, GNUFUTIL and/or
: >> GNUTUTIL.

: Eelco> And you won't: 'which' is an internal command from the
: Eelco> 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, (and probably bash, but I'm not sure).  It is not limited
: to derivatives of csh.  You may also have a similar builtin called
: "whence" which is what ksh uses.

The equivalent buildin to `which' in the bash shell is `type'.

type: type [-all] [-type | -path] [name ...]
        For each NAME, indicate how it would be interpreted if used as a
        command name.

--
Steve # S.T.Mynott@city.ac.uk | dougal@gnu.ai.mit.edu
The Dalai Lama walks up to a hot dog vendor and says,
"Make me one with everything."
Technical Details
Message-ID: <1995Mar15.113157.7789@city.ac.uk>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!cs.utexas.edu!swrinde!gatech!newsfeed.pitt.edu!uunet!in1.uu.net!pipex!sunsite.doc.ic.ac.uk!cs.city.ac.uk!city!cf501
References: <3jfnjp$3f4@qualcomm.com> <D5AuDt.4yH@dutiws.twi.tudelft.nl> <COLEMAN.95Mar12232748@redwood.skiles.gatech.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 04:02:45 PST
Newsgroups: gnu.misc.discuss
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!cs.utexas.edu!swrinde!gatech!newsfeed.pitt.edu!uunet!in1.uu.net!pipex!sunsite.doc.ic.ac.uk!cs.city.ac.uk!city!cf501
From: cf501@city.ac.uk (MYNOTT S T)
Subject: Re: Where is "which"?
Message-ID: <1995Mar15.113157.7789@city.ac.uk>
Sender: news@city.ac.uk (Unix Network News)
Nntp-Posting-Host: cookham
Organization: The City University
X-Newsreader: TIN [version 1.2 PL2]
References: <3jfnjp$3f4@qualcomm.com> <D5AuDt.4yH@dutiws.twi.tudelft.nl> <COLEMAN.95Mar12232748@redwood.skiles.gatech.edu>
Date: Wed, 15 Mar 95 11:31:57 GMT
Lines: 25