[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#10686: mv: moving hardlink of a softlink to the softlink does nothin
From: |
Jim Meyering |
Subject: |
bug#10686: mv: moving hardlink of a softlink to the softlink does nothing |
Date: |
Wed, 01 Feb 2012 15:02:27 +0100 |
Bernhard Voelker wrote:
...
> well, if it's not standardized (yet), then I agree with you that we
> should choose the simpler b) alternative.
>
> Do you think it's work thinking about the -f case?
>
> $ ~/git/coreutils/src/mv -f s l
> /home/berny/git/coreutils/src/mv: āsā and ālā are the same file
mv's -f option is unrelated to this case.
It relates solely to controlling whether one is prompted
due to permissions or -i.
>From 'info mv's description of the common case (no options):
If a destination file exists but is normally unwritable, standard
input is a terminal, and the `-f' or `--force' option is not given,
`mv' prompts the user for whether to replace the file. (You might own
the file, or have write permission on its directory.) If the response
is not affirmative, the file is skipped.
Yes, it is unfortunate that the standards-imposed semantics
of -f is different from what we'd expect.
> The info pages are not quite clear in which cases mv tries to
> overwrite the destination. Usually, I am tempted to think that
> a "--force" will "just do it" - regardless of data loss.
> But in this case, mv "just does not" and the only thing left
> is to rm that hardlink.
If the above is still not clear, please suggest how to improve it.
> That makes me think that the implementation of the a) alternative
> just reduces to calling unlink() ... ;-)
- bug#10686: mv: moving hardlink of a softlink to the softlink does nothing, Bernhard Voelker, 2012/02/01
- Message not available
- bug#10686: mv: moving hardlink of a softlink to the softlink does nothing, Jim Meyering, 2012/02/01
- bug#10686: mv: moving hardlink of a softlink to the softlink does nothing, Eric Blake, 2012/02/01
- bug#10686: mv: moving hardlink of a softlink to the softlink does nothing, Jim Meyering, 2012/02/04
- bug#10686: mv: moving hardlink of a softlink to the softlink does nothing, Bernhard Voelker, 2012/02/06
- Message not available
- bug#10686: mv: moving hardlink of a softlink to the softlink does nothing, Bernhard Voelker, 2012/02/07
- bug#10686: mv: moving hardlink of a softlink to the softlink does nothing, Jim Meyering, 2012/02/11
- bug#10686: mv: moving hardlink of a softlink to the softlink does nothing, Eric Blake, 2012/02/11