From owner-freebsd-bugs Sat Aug 12 16: 0: 8 2000 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 A334D37BCAE for ; Sat, 12 Aug 2000 16:00:06 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id QAA46546; Sat, 12 Aug 2000 16:00:06 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Sat, 12 Aug 2000 16:00:06 -0700 (PDT) Message-Id: <200008122300.QAA46546@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Brian Somers Subject: Re: bin/20567: /bin/sh `type' builtin bug Reply-To: Brian Somers Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/20567; it has been noted by GNATS. From: Brian Somers To: dholland@eecs.harvard.edu Cc: FreeBSD-gnats-submit@FreeBSD.org, brian@Awfulhak.org Subject: Re: bin/20567: /bin/sh `type' builtin bug Date: Sat, 12 Aug 2000 21:19:24 +0100 > --- exec.c.dist Sat Aug 12 14:42:28 2000 > +++ exec.c Sat Aug 12 14:44:06 2000 > @@ -884,7 +884,11 @@ > entry.cmdtype = cmdp->cmdtype; > entry.u = cmdp->param; > } > - else { > + else if (argv[i][0]=='/') { > + /* Absolute path. */ > + out1fmt(" is %s\n", argv[i]); > + continue; > + } else { > /* Finally use brute force */ > find_command(argv[i], &entry, 0, pathval()); > } This is still wrong (although not as wrong as it currently is) as ``type /x'' returns ``/x'' rather than ``/x not found''. -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message