GNU bug report logs -
#52115
Suggestion: LN command should swap TARGET and LINK_NAME if LINK_NAME already exists
Previous Next
Full log
View this message in rfc822 format
On 29/11/2021 01:07 am, Bob Proulx wrote:
> Warren Parad wrote:
>> except mv(1) and cp(1) are both "FROM" and then "TO", but ln is backwards
>> from thi, it is "TO" then "FROM", the least the command could do is put
>> these in the correct order.
>
> But that is not correct. The order for ln is the same as for cp and
> mv in that the target getting created is the right side argument.
>
> (Unless the -t or -T option is used to do it differently by explicit
> syntax request. Unless no target is specified in which case dot is
> assumed. I admit those two "unless" cases complicate the original
> simplicity. But the normal case is to create the right side argument
> as the target of the command.)
>
>>> it is a one-time effort to learn the order
>> Opinion, do you want proof that people can't learn this, because they
>> haven't.
>
> The target getting created is the right side argument. If that is not
> clear from the documentation then improving the documentation is
> always good.
>
> Let me say with some confidence that if the order were changed to
> create the left argument that people would be very upset that cp and
> mv created the right side argument but ln created a left side
> argument!
>
> Bob
>
>
>
>
Windows mklink command already does this - yes, it's annoying.
--
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.