Since gzip has -k flag to keep original file, the output when used with -v flag 
is wrong.

Find below a stupid diff almost shorter than this message.

Regards

Index: main.c
===================================================================
RCS file: /cvs/src/usr.bin/compress/main.c,v
retrieving revision 1.99
diff -u -r1.99 main.c
--- main.c      14 Mar 2022 21:52:08 -0000      1.99
+++ main.c      6 Apr 2022 12:49:51 -0000
@@ -932,7 +932,7 @@
                return;
        }
        if (!pipin) {
-               fprintf(stderr, "\t%4.1f%% -- replaced with %s\n",
+               fprintf(stderr, "\t%4.1f%% -- compressed to %s\n",
                    (uncompressed - compressed) * 100.0 / uncompressed, file);
        }
        compressed += hlen;

Reply via email to