help-gnu-utils
[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: Wed, 15 Sep 2004 21:53:17 GMT
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux)

> When would the result created without looking at the file system not
> work? I don't know if it's true for all OSes, but GNU/Linux can have
> symlinks use other symlinks, so is any special attention to symlinks
> needed?

Very easy:

     cd; ln -s share/bin .

(file-relative-name "~/" "~/bin/") will return "../" whereas "../../" is
needed to go from ~/bin/ to ~/.


        Stefan


reply via email to

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