Subject: bug#15770: closed (Re: bug#15770: zgrep -n does not work for n>9)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 31 Oct 2013 16:37:03 +0000

Your bug report

#15770: zgrep -n does not work for n>9

which was filed against the gzip package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
15770: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15770
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#15770: zgrep -n does not work for n>9
From: Paul Eggert <[email-masked]>
To: Horst Scheuermann <[email-masked]>, [email-masked]
Date: Thu, 31 Oct 2013 09:36:24 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

I think that bug was fixed last year; I can't reproduce it in gzip 1.6.

Subject: zgrep -n does not work for n>9
From: Horst Scheuermann <[email-masked]>
To: "[email-masked]" <[email-masked]>
Date: Thu, 31 Oct 2013 09:42:05 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

zgrep --version
z$grep (gzip) 1.3.12
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by Jean-loup Gailly.

This works:

zgrep -9 marclatz syslog-20131031.gz | wc -l
19

And this:

zgrep -C 10 marclatz syslog-20131031.gz | wc -l
21

This does not work:

zgrep -10 marclatz syslog-20131031.gz | wc -l
gzip: marclatz.gz: No such file or directory
2092205

But this works:

gunzip -c syslog-20131031.gz | grep -10 marclatz | wc -l
21

greetings

-- 
Horst Scheuermann

Zentrum für Informations-, Medien-
und Kommunikationstechnologie (ZIMK)
Universität Trier
54286 Trier
 
Tel.: +49 651 201/3436
Fax: +49 651 201/3921
E-Mail: [email-masked]