GNU bug report logs - #17504
bug in gzgrep?

Previous Next

Package: gzip;

Reported by: "Robert M. Lawhead" <rml <at> ucsd.edu>

Date: Fri, 16 May 2014 01:01:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: "Robert M. Lawhead" <rml <at> ucsd.edu>
Subject: bug#17504: closed (Re: bug#17504: bug in gzgrep?)
Date: Sat, 17 May 2014 01:11:03 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#17504: bug in gzgrep?

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 17504 <at> debbugs.gnu.org.

-- 
17504: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17504
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: "Robert M. Lawhead" <rml <at> ucsd.edu>, 17504-done <at> debbugs.gnu.org
Cc: bparent <at> ucsd.edu
Subject: Re: bug#17504: bug in gzgrep?
Date: Fri, 16 May 2014 18:09:55 -0700
Robert M. Lawhead wrote:
> % gzgrep --version
> gzgrep (gzip) 1.4

Wow, that's old.  I recall fixing that bug some time ago in the GNU 
sources.  I can't reproduce the problem on the oldest Solaris box I have 
easy access to:

$ echo foo >a
$ echo foo >b
$ echo bar >c
$ gzgrep foo *
a:foo
b:foo
$ gzgrep -h foo *
foo
foo
$ uname -srvmpi
SunOS 5.10 Generic_147440-19 sun4u sparc SUNW,Sun-Fire-280R
$ gzgrep --version | sed 1q
gzgrep (gzip) 1.5

My guess is that you need to bring your Solaris machine up-to-date, by 
installing the usual patches from Oracle.  Probably should be doing that 
anyway, as unpatched machines can be dangerous.

[Message part 3 (message/rfc822, inline)]
From: "Robert M. Lawhead" <rml <at> ucsd.edu>
To: bug-gzip <at> gnu.org
Cc: rml <at> ucsd.edu, bparent <at> ucsd.edu
Subject: bug in gzgrep?
Date: Thu, 15 May 2014 16:35:24 -0700
% gzgrep --version
gzgrep (gzip) 1.4
Copyright (C) 2007, 2009-2010 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.

% mkdir gzgrep_test
% cd $_
% echo foo >a
% echo foo >b
% echo bar >c
%
% /usr/bin/gzgrep foo *
a:foo
b:foo

# brokeness...
% /usr/bin/gzgrep -h foo *
a:foo
b:foo

% ~/bin/gzgrep foo *
a:foo
b:foo

# fixed
% ~/bin/gzgrep -h foo *
foo
foo

# how does grep behave
% /bin/grep -h foo *
foo
foo

# The hack I made
% diff -bw /usr/bin/gzgrep /home/solaris/staff/rml/bin/gzgrep
157a158
> [[ $grep == @(*-h*) ]] && with_filename=0 && no_filename=1    # rml



This bug report was last modified 11 years and 11 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.