Siward de Groot wrote:
> which does not follow symlinks

True, it reports the symlink name rather than its target.


> it's manpage says that
>        which  returns  the pathnames of the files which would be executed


The man page could be clarified by replacing the above with

    which returns the pathnames of the files (or symbolic links) which would be 
executed


> i would like to use something like 'dpkg -S `which xemacs`'


$ dpkg -S $(readlink -f $(which xemacs))
xemacs21-mule: /usr/bin/xemacs-21.4.16-mule

-- 
Thomas Hood <[EMAIL PROTECTED]>



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to