[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 <monnier@iro.umontreal.ca> wrote in message
news:<jwvu0tzkxry.fsf-monnier+gnu.misc.discuss@gnu.org>...
> > 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.
Roger
- symlink weirdness, Roger Dahl, 2004/09/13
- Re: symlink weirdness, Barry Margolin, 2004/09/13
- Re: symlink weirdness, Sam Holden, 2004/09/13
- Re: symlink weirdness, Roger Dahl, 2004/09/14
- Re: symlink weirdness, Stefan Monnier, 2004/09/14
- Re: symlink weirdness, Roger Dahl, 2004/09/15
- Re: symlink weirdness, Stefan Monnier, 2004/09/15
- Re: symlink weirdness,
Roger Dahl <=
- Re: symlink weirdness, Paul Jarc, 2004/09/16
- Re: symlink weirdness, Barry Margolin, 2004/09/18
Re: symlink weirdness, Barry Margolin, 2004/09/13
Re: symlink weirdness, Tim Smith, 2004/09/14