On Fri, Aug 14, 2009 at 7:23 PM, Michael Albinus<[email protected]> 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


_______________________________________________
Tramp-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to