bug#13601: mv should not silently lose file extended attributes

Pádraig Brady <[email protected]>
Newsgroups gmane.comp.gnu.core-utils.bugs
Message-ID <[email protected]>
On 16/08/2026 17:30, Paul Eggert wrote:
> On 2026-08-16 03:24, Pádraig Brady wrote:
> 
>> We might get complaints for the extra warnings,
>> but I suppose users can `cp -a && rm` for more granular warning support.
> 
> POSIX requires just one warning per mv argument, so for the relatively common case of "mv SRCDIR /x/DESTDIR" we could cut the warnings down to one instead of one per file under SRCDIR.
I'm 50:50 since there is a workaround.
If we were to do that, then it would probably be best as a separate change.
It might be nice to also treat the chown() failures similarly,
though it's annoying they fail with EPERM rather than ENOTSUP,
so I'm not sure that's practical.

cheers,
Padraig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.