Source-Changes-HG archive

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

[src/netbsd-2-0]: src/usr.bin/gzip Pull up revision 1.4 (requested by mrg in ...



details:   https://anonhg.NetBSD.org/src/rev/6d5ba42113c1
branches:  netbsd-2-0
changeset: 561236:6d5ba42113c1
user:      tron <tron%NetBSD.org@localhost>
date:      Sun May 30 15:00:44 2004 +0000

description:
Pull up revision 1.4 (requested by mrg in ticket #421):
use "zcat -fq" not just plain "zcat".  this lets zgrep work on non
compressed files (as reported by simonb) as well as not printing
random warnings that zgrep isn't ready to handle.

diffstat:

 usr.bin/gzip/zgrep |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 9e38b0724197 -r 6d5ba42113c1 usr.bin/gzip/zgrep
--- a/usr.bin/gzip/zgrep        Sun May 30 14:59:56 2004 +0000
+++ b/usr.bin/gzip/zgrep        Sun May 30 15:00:44 2004 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: zgrep,v 1.2.2.1 2004/05/30 14:59:56 tron Exp $
+# $NetBSD: zgrep,v 1.2.2.2 2004/05/30 15:00:44 tron Exp $
 #
 # Copyright (c) 2003 Thomas Klausner.
 #
@@ -101,12 +101,12 @@
 if [ $# -lt 1 ]
 then
     # ... on stdin
-    ${zcat} - | ${grep} ${grep_args} "${pattern}" -
+    ${zcat} -fq - | ${grep} ${grep_args} "${pattern}" -
 else
     # ... on all files given on the command line
     while [ $# -gt 0 ]
     do
-       ${zcat} -- "$1" | ${grep} -H --label="${1}" "${pattern}" ${grep_args} -
+       ${zcat} -fq -- "$1" | ${grep} -H --label="${1}" "${pattern}" ${grep_args} -
        shift
     done
 fi



Home | Main Index | Thread Index | Old Index