Date: Sat, 12 Aug 2000 16:00:06 -0700 (PDT) From: Brian Somers <brian@Awfulhak.org> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/20567: /bin/sh `type' builtin bug Message-ID: <200008122300.QAA46546@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/20567; it has been noted by GNATS. From: Brian Somers <brian@Awfulhak.org> 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 <brian@Awfulhak.org> <brian@[uk.]FreeBSD.org> <http://www.Awfulhak.org> <brian@[uk.]OpenBSD.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200008122300.QAA46546>