GNU bug report logs - #50097
gzip: add "--keep" option to keep original files unchanged

Previous Next

Package: gzip;

Reported by: Krzysztof Żelechowski <giecrilj <at> stegny.2a.pl>

Date: Tue, 17 Aug 2021 17:45:01 UTC

Severity: wishlist

Full log


Message #17 received at 50097 <at> debbugs.gnu.org (full text, mbox):

From: Antonio Diaz Diaz <antonio <at> gnu.org>
To: Rodrigo Campos <rodrigo <at> sdfg.com.ar>
Cc: giecrilj <at> stegny.2a.pl, 50097 <at> debbugs.gnu.org
Subject: Re: bug#50097: gzip: add "--keep" option to keep original files
 unchanged
Date: Thu, 19 Aug 2021 15:50:49 +0200
Rodrigo Campos wrote:
>> { >>a && ln a b && gzip -k b
>> }
>
> Exactly, the original file is unaffected, therefore nothing to fix in
> this specific patch. Note the same happens without "-k" too.

I think the point of Krzysztof is that the patch is incomplete because, in 
addition to keep the original file, it should also allow the (de)compression 
of links without forcing the user to type also '-f' for no apparent reason.

$ touch a && ln a b && ls -go *
-rw-r--r-- 2 0 Aug 19 15:29 a
-rw-r--r-- 2 0 Aug 19 15:29 b
$ gzip -k b
gzip: b has 1 other link  -- unchanged
$ lzip -k b
$ ls -go *
-rw-r--r-- 2  0 Aug 19 15:29 a
-rw-r--r-- 2  0 Aug 19 15:29 b
-rw-r--r-- 1 36 Aug 19 15:29 b.lz
$ gzip -k -f b
$ ls -go *
-rw-r--r-- 2  0 Aug 19 15:29 a
-rw-r--r-- 2  0 Aug 19 15:29 b
-rw-r--r-- 1 22 Aug 19 15:29 b.gz
-rw-r--r-- 1 36 Aug 19 15:29 b.lz


Best regards,
Antonio.




This bug report was last modified 3 years and 79 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.