From owner-freebsd-bugs Fri Apr 5 20:10:15 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 805CF37B422 for ; Fri, 5 Apr 2002 20:10:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g364A3v69785; Fri, 5 Apr 2002 20:10:03 -0800 (PST) (envelope-from gnats) Date: Fri, 5 Apr 2002 20:10:03 -0800 (PST) Message-Id: <200204060410.g364A3v69785@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Peter Leftwich Subject: Re: bin/36757: EnhancementRequest binary which ought to append @ if result is symlink Reply-To: Peter Leftwich Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/36757; it has been noted by GNATS. From: Peter Leftwich To: David Malone Cc: 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message