From owner-freebsd-current Fri Mar 3 8:53:45 2000 Delivered-To: freebsd-current@freebsd.org Received: from Mail.Openet-Telecom.COM (opentisdn.isdn.dublin.esat.net [193.120.50.79]) by hub.freebsd.org (Postfix) with ESMTP id BB9A637B5BE for ; Fri, 3 Mar 2000 08:53:34 -0800 (PST) (envelope-from peter.edwards@openet-telecom.com) Received: from openet-telecom.com (rocklobster.openet-telecom.lan [10.0.0.40]) by Mail.Openet-Telecom.COM (8.9.3/8.9.3) with ESMTP id QAA63422; Fri, 3 Mar 2000 16:58:10 GMT (envelope-from peter.edwards@openet-telecom.com) Message-ID: <38BFEDC3.83ED3A80@openet-telecom.com> Date: Fri, 03 Mar 2000 16:52:19 +0000 From: Peter Edwards Organization: Openet Telecom X-Mailer: Mozilla 4.7 [en] (X11; I; FreeBSD 4.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: Assar Westerlund , current@freebsd.org Subject: Re: C shell scripts (was: Re: which(1), rewritten in C?) References: <20000303005651.A62723@dragon.nuxi.com> <200003030909.KAA72276@hugo10.ka.punkt.de> <20000303073621.A91188@dragon.nuxi.com> <5lln40qcpj.fsf@assaris.sics.se> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Assar Westerlund wrote: > > There's a real reason for not writing this in csh. Because the > built-in function will return results for csh, which might not be the > right ones for other shells. > I got bitten by this by HP-UX 10's csh-based "which". My solaris-hosted NFS home directory had the default Solaris .cshrc that changes $path. Needless to say, "which" was somewhat misleading :-) Ugh. -- Peter. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message