gnu-misc-discuss
[Top][All Lists]
Advanced

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

Re: symlink weirdness


From: Stefan Monnier
Subject: Re: symlink weirdness
Date: Tue, 14 Sep 2004 21:09:29 GMT
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux)

>> ln -s `relpath $C $B` $C
> Though I can't off the top of my head think of any other tools that
> might benefit from it, I like that idea.

It's sufficiently useful for Emacs to have a function that does just that:
file-relative-name.  It doesn't pay attention to symlinks, tho (more to the
point, the function is a pure string-manipulation and works without even
looking at the file system AFAIK) so the result might not work.


        Stefan

reply via email to

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