Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msunews!agate!howland.reston.ans.net!pipex!bnr.co.uk!corpgate!bcarh189.bnr.ca!nott!torn!news.unb.ca!coranto.ucs.mun.ca!nstn.ns.ca!Snoopy.UCIS.Dal.Ca!digdon From: digdon@Snoopy.UCIS.Dal.Ca (Mike Digdon) Newsgroups: comp.os.386bsd.questions Subject: Re: FBSD 2.0-950112: Missing "which" Date: 27 Jan 1995 11:19:10 -0400 Organization: Warped Minds, Inc. Lines: 24 Sender: news@nstn.ns.ca Message-ID: <3gb2te$kds@Owl.nstn.ca> References: <3g386a$mfq@Owl.nstn.ca> NNTP-Posting-Host: owl.nstn.ns.ca X-Newsreader: TIN [version 1.2 PL2] I (digdon@Snoopy.UCIS.Dal.Ca) wrote: : 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. After loads of responses, I got the information I was looking for. Some people said to simply use the csh script. Others gave me little programs to do it. However, the one I went with was the bash built-in "type" command. I aliased it to which and it does exactly the same thing the normal which does, including finding aliases and bash builtins. Thanx for all of the replies. -- Mike Digdon # Network Operation Centre # Dalhousie University Phone: +1 902 494-1873 # E-mail: digdon@snoopy.ucis.dal.ca