On 2020-12-27 14:39:18 +0100, Sebastian Andrzej Siewior wrote:
> On 2020-11-27 18:22:01 [+0100], Vincent Lefevre wrote:
> > "unxz -k" refuses to decompress a file because it has more than one
> > hard link. This is silly!
>
> It may be silly but it is consistent with gzip's & bzip2's behaviour.
> `gzip' has this since the 90s.
This is not documented in their man pages, so that this could be
regarded as a bug. It is possible that no-one has ever tried (as
hard links aren't common).
> The -f option performs the operation anyway. Is this good enough?
No, as documented: "This option has several effects:" and this option
can yield data loss:
• If the target file already exists, delete it before compressing or
decompressing.
--
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)