GNU bug report logs - #47703
Mention if ln -s needs -r, or ln -r needs -s

Previous Next

Package: coreutils;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Sun, 11 Apr 2021 05:43:04 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 47703 in the body.
You can then email your comments to 47703 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#47703; Package coreutils. (Sun, 11 Apr 2021 05:43:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Sun, 11 Apr 2021 05:43:04 GMT) Full text and rfc822 format available.

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

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-coreutils <at> gnu.org
Subject: Mention if ln -s needs -r, or ln -r needs -s
Date: Fri, 09 Apr 2021 19:46:48 +0800
man ln says:

       -r, --relative
              create symbolic links relative to link location

       -s, --symbolic
              make symbolic links instead of hard links

Does -s need -r,
or   -r need -s?

Hard to tell from the man page.

Had to find out the 'hard' way.

Please mention the answer on the man page.

Thanks.




Reply sent to Pádraig Brady <P <at> draigBrady.com>:
You have taken responsibility. (Sun, 11 Apr 2021 14:22:02 GMT) Full text and rfc822 format available.

Notification sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
bug acknowledged by developer. (Sun, 11 Apr 2021 14:22:02 GMT) Full text and rfc822 format available.

Message #10 received at 47703-done <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>,
 47703-done <at> debbugs.gnu.org
Subject: Re: bug#47703: Mention if ln -s needs -r, or ln -r needs -s
Date: Sun, 11 Apr 2021 15:21:19 +0100
[Message part 1 (text/plain, inline)]
On 09/04/2021 12:46, 積丹尼 Dan Jacobson wrote:
> man ln says:
> 
>         -r, --relative
>                create symbolic links relative to link location
> 
>         -s, --symbolic
>                make symbolic links instead of hard links
> 
> Does -s need -r,
> or   -r need -s?
> 
> Hard to tell from the man page.
> 
> Had to find out the 'hard' way.
> 
> Please mention the answer on the man page.

Fair point.
Will address with the attached.
Marking this as done.

thanks,
Pádraig
[ln-clarify--relative.patch (text/x-patch, attachment)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#47703; Package coreutils. (Fri, 30 Apr 2021 02:54:01 GMT) Full text and rfc822 format available.

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

From: L A Walsh <coreutils <at> tlinx.org>
To: Coreutils <bug-coreutils <at> gnu.org>, 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>,
 Pádraig Brady <P <at> draigBrady.com>
Subject: Re: Same category as "ln <dir> <symdir>" (was: bug#47703: Mention
 if ln -s needs -r, or ln -r needs -s)
Date: Thu, 29 Apr 2021 19:52:05 -0700
On 2021/04/11 07:21, Pádraig Brady wrote:
> On 09/04/2021 12:46, 積丹尼 Dan Jacobson wrote:
>> man ln says:
>>         -r, --relative
>>                create symbolic links relative to link location
>>         -s, --symbolic
>>                make symbolic links instead of hard links
>> Hard to tell from the man page.
---
   Seems like another related example ignoring what the user wants and
issuing an error for an inexact usage.

   If you used "-r" by itself, or if you try linking a directory,
either without "-s", you get an error message, when it would be more
helpful to assume "-s" and give a diagnostic if "interactive" (assumption
being, that if it was in a script, it was obviously intended that way,
as any other way generates an error).

> Fair point.
> thanks, Pádraig





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 28 May 2021 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 306 days ago.

Previous Next


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