tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Patch: use GNU readlink --canonicalize for file-truename when avail


From: Julian Scheid
Subject: Re: Patch: use GNU readlink --canonicalize for file-truename when available
Date: Fri, 14 Aug 2009 19:51:22 +1200

On Fri, Aug 14, 2009 at 7:23 PM, Michael Albinus<address@hidden> wrote:
> What about this:
>
> $ perl -e 'use Cwd "realpath"; (-e "/does/not/exist") ? print 
> realpath("/does/not/exist") : print "/does/not/exist"; print "\n"'
> /does/not/exist

That's not enough:

$ mkdir /tmp/real
$ ln -s /tmp/real /tmp/fake

(file-truename "/tmp/fake/foo/bar")
"/tmp/real/foo/bar"

> $ readlink --canonicalize-missing /does/not/exist
> /does/not/exist

Good point, I forgot about that. It seems to work:

$ readlink -m /tmp/fake/foo/bar
/tmp/real/foo/bar




reply via email to

[Prev in Thread] Current Thread [Next in Thread]