From owner-freebsd-current Fri Mar 3 8:22:40 2000 Delivered-To: freebsd-current@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 38F4837B640 for ; Fri, 3 Mar 2000 08:22:38 -0800 (PST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id LAA73168; Fri, 3 Mar 2000 11:22:32 -0500 (EST) (envelope-from wollman) Date: Fri, 3 Mar 2000 11:22:32 -0500 (EST) From: Garrett Wollman Message-Id: <200003031622.LAA73168@khavrinen.lcs.mit.edu> To: Assar Westerlund Cc: Garrett Wollman , current@FreeBSD.ORG Subject: Re: C shell scripts (was: Re: which(1), rewritten in C?) In-Reply-To: <5log8wjb2e.fsf@assaris.sics.se> References: <20000303005651.A62723@dragon.nuxi.com> <200003030909.KAA72276@hugo10.ka.punkt.de> <20000303073621.A91188@dragon.nuxi.com> <5lln40qcpj.fsf@assaris.sics.se> <200003031556.KAA73010@khavrinen.lcs.mit.edu> <5log8wjb2e.fsf@assaris.sics.se> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG < said: > Sure, but there's a /usr/bin/which program. Do you suggest we should > remove it? I don't have any problems with that... The original `which' was a C shell script. Its purpose was specifically to explain how the C shell would locate a particular command. That's why the Korn shell introduced `type'. This functionality *needs* to be a shell builtin -- the only reason an external C shell script worked (most of the time) was that csh insists on reading .cshrc even for non-interactive shells. -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message