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