Path: utzoo!attcan!uunet!mcsun!ukc!edcastle!aiai!richard From: richard@aiai.ed.ac.uk (Richard Tobin) Newsgroups: comp.unix.questions Subject: Re: How to get the pathname of the current executable? Message-ID: <1747@skye.ed.ac.uk> Date: 13 Feb 90 21:02:41 GMT References: <1610.25d028a3@wums.wustl.edu> <1990Feb7.211538.3894@iwarp.intel.com> <5378@buengc.BU.EDU> Reply-To: richard@aiai.UUCP (Richard Tobin) Organization: AIAI, University of Edinburgh, Scotland Lines: 15 In article <5378@buengc.BU.EDU> bph@buengc.bu.edu (Blair P. Houghton) writes: > someone please tell me why which(1) reads the .cshrc... If you're asking "why does which(1) assume I use csh", then: Different shells potentially interpret commands in completely different ways. A command like which *has* to depend on your shell. It seems clear to me that which should be built-in to csh and sh - that way it would always be right. -- Richard -- Richard Tobin, JANET: R.Tobin@uk.ac.ed AI Applications Institute, ARPA: R.Tobin%uk.ac.ed@nsfnet-relay.ac.uk Edinburgh University. UUCP: ...!ukc!ed.ac.uk!R.Tobin