Date: Fri, 5 Apr 2002 20:10:03 -0800 (PST) From: Peter Leftwich <Hostmaster@Video2Video.Com> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/36757: EnhancementRequest binary which ought to append @ if result is symlink Message-ID: <200204060410.g364A3v69785@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/36757; it has been noted by GNATS. 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 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?200204060410.g364A3v69785>