Carl Lowenstein wrote:
> On 9/12/07, John H. Robinson, IV <[EMAIL PROTECTED]> wrote:
> >
> > I would have expected ``readlink /usr/bin/vi'' to report
> > /usr/bin/vim.basic.
> 
> From $ man readlink
> - - - - -
> DESCRIPTION
>        Display value of a symbolic link on standard output.
> 
>        -f, --canonicalize
>               canonicalize  by  following every symlink in every component of
>               the given path recursively
> - - - - -

Aw, man! I read that, then completely ignored it.

> > [EMAIL PROTECTED]:~]% realpath /usr/bin/vi
> > /usr/bin/vim.basic
> 
> Has somebody made a realpath(1) for Debian which calls realpath(3) ?

[EMAIL PROTECTED]:~]% apt-cache show realpath
Package: realpath
--snip--
Description: Return the canonicalized absolute pathname
 The package contains a small utility realpath, which converts each
 pathname argument to an absolute pathname, which has no components
 that are symbolic links or the special .  or ..  directory entries.
 .
 This utility provides mostly the same functionality as `/bin/readlink -f'
 in the coreutils package.


Next time, I really should read the WHOLE discription instead of just
the summary when installing a package.

Looks like readlink -f it is.

-john

-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to