From owner-freebsd-current Thu Mar 21 15:23:23 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA24164 for current-outgoing; Thu, 21 Mar 1996 15:23:23 -0800 (PST) Received: from mail.cs.tu-berlin.de (root@mail.cs.tu-berlin.de [130.149.17.13]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id PAA24147 for ; Thu, 21 Mar 1996 15:23:12 -0800 (PST) Received: from caramba.cs.tu-berlin.de (wosch@caramba.cs.tu-berlin.de [130.149.17.12]) by mail.cs.tu-berlin.de (8.6.12/8.6.12) with ESMTP id AAA06988; Fri, 22 Mar 1996 00:02:53 +0100 Received: (from wosch@localhost) by campa.panke.de (8.6.9/8.6.9) id WAA00319; Thu, 21 Mar 1996 22:50:38 +0100 Date: Thu, 21 Mar 1996 22:50:38 +0100 From: Wolfram Schneider Message-Id: <199603212150.WAA00319@campa.panke.de> To: scott@statsci.com, freebsd-current@freebsd.org In-reply-to: Scott Blachowicz's message of Wed, 20 Mar 1996 11:24:52 -0800 Subject: Re: perl4 Reply-to: Wolfram Schneider MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 3In article Scott Blachowicz writes: >> > By the way, which is inherantly broken when executed as any sort of >> > script. It needs to be a shell builtin or it needs to die. >I think the point was more that if you define the purpose of 'which' to be >"tell me what would be run if I use this command", then it has to be a >shell builtin in order to find shell-local functions and aliases. Sometimes you need a non-interactive which(1). FreeBSD use which in bsd.port.mk. Not all shells have a builtin 'which' or the shells use an other name for which (bash -> type). Our programs should not depend on non-standardized shell builtins. Wolfram