From owner-freebsd-bugs Sat Mar 9 15:30:14 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id DD88F37B41B for ; Sat, 9 Mar 2002 15:30:00 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g29NU0v92157; Sat, 9 Mar 2002 15:30:00 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 8B3FF37B402 for ; Sat, 9 Mar 2002 15:21:05 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g29NL5Z90855; Sat, 9 Mar 2002 15:21:05 -0800 (PST) (envelope-from nobody) Message-Id: <200203092321.g29NL5Z90855@freefall.freebsd.org> Date: Sat, 9 Mar 2002 15:21:05 -0800 (PST) From: wolfram schneider To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/35717: which(1) returns wrong exit status for multiple arguments Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 35717 >Category: bin >Synopsis: which(1) returns wrong exit status for multiple arguments >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Mar 09 15:30:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: wolfram schneider >Release: >Organization: >Environment: >Description: The new c version of which(1) command returns wrong exit status for multiple arguments. $ which foobar cat /bin/cat $ echo $? 1 which should returns true if any of the arguments are found, false if none are found. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message