[Top][All Lists]

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

Re: symlink weirdness

From: Roger Dahl
Subject: Re: symlink weirdness
Date: 16 Sep 2004 12:02:12 -0700

Stefan Monnier <> wrote in message 
> > 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

Not really... If you're in ~/bin/ and you need to go to ~/, 'cd ..'
will get you there regardless if ~/bin/ is actually a symlink to
somewhere else in the filesystem.


reply via email to

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