Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!crdgw1!crdgw1.ge.com!barnett From: barnett@crdgw1.crd.ge.com (Bruce Barnett) Newsgroups: comp.unix.questions Subject: Re: How to get the pathname of the current executable? Message-ID: <5252@crdgw1.crd.ge.com> Date: 14 Feb 90 03:52:59 GMT References: <1610.25d028a3@wums.wustl.edu> <1990Feb7.211538.3894@iwarp.intel.com> <5378@buengc.BU.EDU> <1990Feb13.095913.29040@hayes.fai.alaska.edu> <1990Feb13.181022.24742@smsc.sony.com> Sender: news@crdgw1.crd.ge.com Reply-To: barnett@crdgw1.crd.ge.com (Bruce Barnett) Organization: GE Corp. R & D, Schenectady, NY Lines: 18 In-reply-to: dce@smsc.sony.com (David Elliott) >>> (someone please tell me >>>why which(1) reads the .cshrc...) >> >>Because which(1) is a csh script. >The question is: Why does which run without the -f option, which would >cause it *not* to read .cshrc? The question is why people post without spending a couple of minutes reading the script file. It DOES use the -f option on start-up. It DOES explicitly source the .cshrc file. Use the source, Luke! -- Bruce G. Barnett uunet!crdgw1!barnett