From root@66-75-1-142.san.rr.com  Fri Mar 22 23:45:32 2002
Return-Path: <root@66-75-1-142.san.rr.com>
Received: from 66-75-1-142.san.rr.com (66-75-4-28.san.rr.com [66.75.4.28])
	by hub.freebsd.org (Postfix) with ESMTP id 29BBF37B400
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 22 Mar 2002 23:45:31 -0800 (PST)
Received: (from root@localhost)
	by 66-75-1-142.san.rr.com (8.12.2/8.11.3) id g2N7kCI9020782;
	Fri, 22 Mar 2002 23:46:12 -0800 (PST)
	(envelope-from root)
Message-Id: <200203230746.g2N7kCI9020782@66-75-1-142.san.rr.com>
Date: Fri, 22 Mar 2002 23:46:12 -0800 (PST)
From: Peter Leftwich <Hostmaster@Video2Video.Com>
Reply-To: Peter Leftwich <Hostmaster@Video2Video.Com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: EnhancementRequest binary which ought to append @ if result is symlink
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         36757
>Category:       bin
>Synopsis:       which(1) ought to append @ if result is symlink
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 04 09:20:03 PST 2002
>Closed-Date:    Sun Aug 10 08:37:08 UTC 2008
>Last-Modified:  Sun Aug 10 08:37:08 UTC 2008
>Originator:     Administrator
>Release:        FreeBSD 4.5-RELEASE i386
>Organization:
Video2Video Services
>Environment:
System: FreeBSD san.rr.com 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Mon Jan 28 14:31:56 GMT 2002 murray@builder.freebsdmall.com:/usr/src/sys/compile/GENERIC i386
	NA
>Description:
	I would like the command/binary "which" to append an "@" to the resulting path and filename if the result is a symlink (symbolic link).  Thank you for entertaining this notion.
>How-To-Repeat:
	NA
>Fix:
	NA

>Release-Note:
>Audit-Trail:

From: David Malone <dwmalone@maths.tcd.ie>
To: Peter Leftwich <Hostmaster@Video2Video.Com>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: bin/36757: EnhancementRequest binary which ought to append @ if result is symlink
Date: Fri, 5 Apr 2002 10:23:24 +0100

 On Fri, Mar 22, 2002 at 11:46:12PM -0800, Peter Leftwich wrote:
 > >Description:
 > 	I would like the command/binary "which" to append an "@" to the resulting path and filename if the result is a symlink (symbolic link).  Thank you for entertaining this notion.
 
 One way of doing this is:
 
 	ls -F `which command`
 
 David.

From: Peter Leftwich <Hostmaster@Video2Video.Com>
To: David Malone <dwmalone@maths.tcd.ie>
Cc: <FreeBSD-gnats-submit@FreeBSD.org>
Subject: Re: bin/36757: EnhancementRequest binary which ought to append @ if
 result is symlink
Date: Fri, 5 Apr 2002 23:01:16 -0500 (EST)

 On Fri, 5 Apr 2002, David Malone wrote:
 > On Fri, Mar 22, 2002 at 11:46:12PM -0800, Peter Leftwich wrote:
 > > > Description: I would like the command/binary "which" to append an "@" to the resulting path and filename if the result is a symlink (symbolic link).  Thank you for entertaining this notion.
 > One way of doing this is: ls -F `which command` -David.
 
 Yes, I realize that, and based my enhancement request on the notion of what
 "ls -F" does in fact *smiles*  The request is somewhat moot because "which"
 includes alias information.  Perhaps the "which" binary could include a
 flag such as -i for more information, and this would return several lines
 if necessary (aliased command, actual path and binary with a * on the end
 if executable or an @ for symlinks or the actual path to which I refer
 would return something like:
 
 /usr/bin/somebinary@ -> /usr/bin/actualbinary
 
 I just did "which which" and see that it is a (tcsh) shell-builtin. :)
 
 --
 Peter Leftwich
 President & Founder
 Video2Video Services
 Box 13692, La Jolla, CA, 92039 USA
 +1-413-403-9555
 
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 
>Unformatted:
