[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#27240: inconsistent and confusing output from 'ln' vs. 'cp': can thi
From: |
Pádraig Brady |
Subject: |
bug#27240: inconsistent and confusing output from 'ln' vs. 'cp': can this be fixed? |
Date: |
Tue, 6 Jun 2017 21:34:55 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
On 04/06/17 22:07, Paul Eggert wrote:
> Pádraig Brady wrote:
>> Well => is for hardlinks, and both -> and => were used
>> to distinguish the operations (in v5.92-191-g24ce72f)
>
> As I understand it, part of the motivation is consistency with 'ls':
>
> $ ln -sv a b
> 'b' -> 'a'
> $ ls -l b
> lrwxrwxrwx 1 eggert eggert 1 Jun 4 21:59 b -> a
>
> With that in mind, if we were to change the format of 'ln' so that the order
> was
> the same as the command line, presumably it would look like this:
>
> $ ln -sv a b
> 'a' <- 'b'
> $ ln -v c d
> 'c' <= 'd'
>
> An advantage of this format (over what we're using) is that it's easier to
> distinguish 'cp -v' from 'ln -v' output in a log. I'm not sure that's enough
> advantage to change, though. Besides, 'cp -v' vs 'mv -v' output is already
> ambiguous.
I do like that change for ln.
Whether the improvement might break compatibility is a concern,
though I think that's unlikely.
cheers,
Pádraig