bug-gzip
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Krzysztof Żelechowski
Subject: bug#50097: gzip: add "--keep" option to keep original files unchanged
Date: Thu, 19 Aug 2021 22:43:54 +0200

Dnia czwartek, 19 sierpnia 2021 17:28:51 CEST Rodrigo Campos pisze:
> On 8/19/21 3:50 PM, Antonio Diaz Diaz wrote:
> > Rodrigo Campos wrote:
> > $ 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
> 
> Yeap, but the same happens if you run this instead: gzip b (i.e. without
> -k).
> 
> It is not the -k flag that gets in the way. This is what happens in
> gzip, even without using the flag.
> 
> Am I missing something?

The command { gzip b; } fails because it would compress [a] without renaming 
it.
The command { gzip -k b; } would not compress [a], so there is no reason to 
fail.
HTH,
Chris







reply via email to

[Prev in Thread] Current Thread [Next in Thread]