GNU bug report logs - #13742
Is this soft link directory bug?

Previous Next

Package: coreutils;

Reported by: Taroe90 <taroe90 <at> gmail.com>

Date: Mon, 18 Feb 2013 05:37:02 UTC

Severity: normal

Tags: moreinfo, notabug

Done: Bob Proulx <bob <at> proulx.com>

Bug is archived. No further changes may be made.

Full log


Message #15 received at 13742 <at> debbugs.gnu.org (full text, mbox):

From: Bob Proulx <bob <at> proulx.com>
To: Taroe90 <taroe90 <at> gmail.com>
Cc: 13742 <at> debbugs.gnu.org
Subject: Re: bug#13742: Is this soft link directory bug?
Date: Mon, 18 Feb 2013 11:44:58 -0700
Bob Proulx wrote:
> Simpler with shorter paths.
> 
>   $ mkdir a
>   $ ln -s a b     # <-- Creates "b" symink to "a"
>   $ ln -s a b     # <-- Creates "a/a" symlink due to existence of "b"
> 
> To avoid using portable syntax.  (Okay for System V systems [HP-UX, others].)
> 
>   $ mkdir a
>   $ ln -s a b     # <-- Creates "b" symink to "a"
>   $ rm -f b       # <-- Removes "b" before creating second symlink
>   $ ln -s a b     # <-- Creates "a/a" symlink due to existence of "b"

My comment above is a mistake.  This following comment is wrong.

>   $ ln -s a b     # <-- Creates "a/a" symlink due to existence of "b"

That should read:

  $ mkdir a
  $ ln -s a b     # <-- Creates "b" symink to "a"
  $ rm -f b       # <-- Removes "b" before creating second symlink
  $ ln -s a b     # <-- Creates "b" symlink to "a" due to no prior "b"

Sorry for the mistake in that comment.

Bob




This bug report was last modified 12 years and 97 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.