GNU bug report logs - #52115
Suggestion: LN command should swap TARGET and LINK_NAME if LINK_NAME already exists

Previous Next

Package: coreutils;

Reported by: Warren Parad <wparad <at> gmail.com>

Date: Thu, 25 Nov 2021 20:25:02 UTC

Severity: wishlist

Tags: wontfix

Full log


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

From: Chris Elvidge <celvidge001 <at> gmail.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>, Ulf Zibis <Ulf.Zibis <at> gmx.de>
Cc: 52115 <at> debbugs.gnu.org
Subject: Re: bug#52115: Suggestion: LN command should swap TARGET and
 LINK_NAME if LINK_NAME already exists
Date: Mon, 29 Nov 2021 20:01:33 +0000
On 29/11/2021 07:07 pm, Paul Eggert wrote:
> On 11/29/21 02:34, Ulf Zibis wrote:
>> I think, for beginners it would be less confusing, if the most simple 
>> form would be the first.
> 
> Unfortunately the simple form "ln TARGET" is quite rarely used, so 
> putting it first is likely to confuse beginners even more than what we 
> have already. Come to think of it, perhaps we should put the simple form 
> last instead of 2nd.
> 

I use 'ln -s "source"' quite a lot for linking into e.g. /usr/local/bin 
from my own $HOME/bin.

The real problem could be with the terminology.
'ln [options] TARGET [LINK_NAME]'; the TARGET is really the source, 
which obviously must exist. A TARGET is really something you aim at.

Perhaps it should be changed to 'ln [options] source [link]'


-- 

Chris Elvidge






This bug report was last modified 3 years and 199 days ago.

Previous Next


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