Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Jun 1999 13:48:55 -0400 (EDT)
From:      matt@zigg.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/12052: sh type builtin appends first path component to absolute result
Message-ID:  <199906061748.NAA00284@torgo.zigg.local>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906061748.NAA00284>