Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Aug 2008 08:37:07 GMT
From:      edwin@FreeBSD.org
To:        Hostmaster@Video2Video.Com, edwin@FreeBSD.org, freebsd-bugs@FreeBSD.org
Subject:   Re: bin/36757: which(1) ought to append @ if result is symlink
Message-ID:  <200808100837.m7A8b7QS064734@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
Synopsis: which(1) ought to append @ if result is symlink

State-Changed-From-To: open->closed
State-Changed-By: edwin
State-Changed-When: Sun Aug 10 08:32:53 UTC 2008
State-Changed-Why: 
This is a very dangerous addition to the output.

Normally which(1) is used to determine if there is a program file
with that name in the users $PATH, to know if the program is there
and know the full path. By adding this character, suddenly the
program file returned doesn't exist anymore despite that the program
file does exist.

I'm sorry but this shouldn't be done.

http://www.freebsd.org/cgi/query-pr.cgi?pr=36757



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