*BSD News Article 41505


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!uunet!news.mathworks.com!hookup!news.mcgill.ca!newsflash.concordia.ca!nstn.ns.ca!Snoopy.UCIS.Dal.Ca!digdon
From: digdon@Snoopy.UCIS.Dal.Ca (Mike Digdon)
Newsgroups: comp.os.386bsd.questions
Subject: FBSD 2.0-950112: Missing "which"
Date: 24 Jan 1995 12:00:10 -0400
Organization: Warped Minds, Inc.
Lines: 16
Sender: news@nstn.ns.ca
Message-ID: <3g386a$mfq@Owl.nstn.ca>
NNTP-Posting-Host: owl.nstn.ns.ca
X-Newsreader: TIN [version 1.2 PL2]

I tend to use the "which" command quite a lot.  Before I had time to install
bash (I just set up my machine), I had to use csh.  "which" seems to be a csh
built-in, so I was very surprised to find that "which" stopped working once
I was running bash.

On my SunOS system at work, "which" is found in /usr/ucb, and is not a
built-in function.  So, before I write my own verion of "which", is there
some source for this floating around somewhere?  I tried to find some in
various places, but was unsuccessful.

If there isn't and I do end up writing such a beast (well, which isn't THAT
complicated), would anyone be interested in it?

--
         Mike Digdon # Network Operation Centre # Dalhousie University
          Phone: +1 902 494-1873 # E-mail: digdon@snoopy.ucis.dal.ca