Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!ucdavis!csusac!scott From: scott@csusac.csus.edu (L. Scott Emmons) Newsgroups: comp.unix.questions Subject: Re: How to get the pathname of the current executable? Message-ID: <1990Feb13.044520.3487@csusac.csus.edu> Date: 13 Feb 90 04:45:20 GMT References: <1610.25d028a3@wums.wustl.edu> <1990Feb7.211538.3894@iwarp.intel.com> <5378@buengc.BU.EDU> Reply-To: scott@csusac.UUCP (L. Scott Emmons) Organization: California State University, Sacramento Lines: 9 In article <5378@buengc.BU.EDU> bph@buengc.bu.edu (Blair P. Houghton) writes: >(someone please tell me why which(1) reads the .cshrc...) Because 'which' is a C-shell script itself...and when a C-shell script is called a new csh is forked, and .cshrc is read whenever a csh is started up. -- L. Scott Emmons --------------- ...[!ucbvax]!ucdavis!csusac!scott ucdavis!csusac!scott@ucbvax.berkeley.edu