From owner-freebsd-bugs Sun Jun 6 10:50: 9 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 799DF15783 for ; Sun, 6 Jun 1999 10:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id KAA39467; Sun, 6 Jun 1999 10:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from megaweapon.zigg.com (megaweapon.zigg.com [206.114.60.8]) by hub.freebsd.org (Postfix) with ESMTP id 817271548A for ; Sun, 6 Jun 1999 10:48:58 -0700 (PDT) (envelope-from matt@zigg.com) Received: from torgo.zigg.local (torgo.zigg.local [192.168.1.18]) by megaweapon.zigg.com (8.9.3/8.9.3) with ESMTP id NAA28448 for ; Sun, 6 Jun 1999 13:48:57 -0400 (EDT) (envelope-from matt@torgo.zigg.local) Received: (from matt@localhost) by torgo.zigg.local (8.9.3/8.9.3) id NAA00284; Sun, 6 Jun 1999 13:48:55 -0400 (EDT) (envelope-from matt) Message-Id: <199906061748.NAA00284@torgo.zigg.local> Date: Sun, 6 Jun 1999 13:48:55 -0400 (EDT) From: matt@zigg.com Reply-To: matt@zigg.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/12052: sh type builtin appends first path component to absolute result Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 12052 >Category: bin >Synopsis: sh type builtin appends first path component to absolute result >Confidential: yes >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jun 6 10:50:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Matt Behrens >Release: FreeBSD 3.2-19990531-STABLE i386 >Organization: zigg.com >Environment: FreeBSD torgo.zigg.local 3.2-19990531-STABLE FreeBSD 3.2-19990531-STABLE #0: Fri Jun 4 09:08:13 EDT 1999 matt@torgo.zigg.local:/usr/src/sys/compile/TORGO i386 >Description: When using sh's `type' builtin on a file with an absolute path, the file is reported found with the user's first PATH component and a slash prepended. (Admittedly, it may be silly to use `type' on a file with an absolute path.) >How-To-Repeat: $ export PATH=/whatever $ type /COPYRIGHT COPYRIGHT is /whatever//COPYRIGHT >Fix: Unknown. Still learning C. :-( >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message