From: Paul Eggert Date: Wed, 2 Nov 2011 17:35:00 +0000 (-0700) Subject: * gzip.c (treat_stdin): If quiet, be quiet with plain gzip -q. X-Git-Tag: v1.5~21 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=3acc9d6f25e716af0edee5721ba33e87da802bf7;p=debian%2Fgzip * gzip.c (treat_stdin): If quiet, be quiet with plain gzip -q. Problem reported by Michaƫl Guitton in . --- diff --git a/gzip.c b/gzip.c index 6164438..cb10a23 100644 --- a/gzip.c +++ b/gzip.c @@ -617,11 +617,15 @@ local void treat_stdin() * * Here we use the --force option to get the other behavior. */ - fprintf(stderr, - "%s: compressed data not %s a terminal. Use -f to force %scompression.\n", - program_name, decompress ? "read from" : "written to", - decompress ? "de" : ""); - fprintf (stderr, "For help, type: %s -h\n", program_name); + if (! quiet) + fprintf (stderr, + ("%s: compressed data not %s a terminal." + " Use -f to force %scompression.\n" + "For help, type: %s -h\n"), + program_name, + decompress ? "read from" : "written to", + decompress ? "de" : "", + program_name); do_exit(ERROR); }