Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/gzip use "zcat -fq" not just plain "zcat". this let...
details: https://anonhg.NetBSD.org/src/rev/7058b66f1985
branches: trunk
changeset: 566942:7058b66f1985
user: mrg <mrg%NetBSD.org@localhost>
date: Tue May 25 07:09:09 2004 +0000
description:
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 96a9e6eeb3b9 -r 7058b66f1985 usr.bin/gzip/zgrep
--- a/usr.bin/gzip/zgrep Tue May 25 04:44:43 2004 +0000
+++ b/usr.bin/gzip/zgrep Tue May 25 07:09:09 2004 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: zgrep,v 1.3 2004/04/27 09:18:16 jdolecek Exp $
+# $NetBSD: zgrep,v 1.4 2004/05/25 07:09:09 mrg 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