From nobody  Wed Dec  3 20:52:39 1997
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.7/8.8.7) id UAA19007;
          Wed, 3 Dec 1997 20:52:39 -0800 (PST)
          (envelope-from nobody)
Message-Id: <199712040452.UAA19007@hub.freebsd.org>
Date: Wed, 3 Dec 1997 20:52:39 -0800 (PST)
From: john@starfire.mn.org
To: freebsd-gnats-submit@freebsd.org
Subject: zgrep's use of getopt breaks patterns containing whitespace
X-Send-Pr-Version: www-1.0

>Number:         5211
>Category:       bin
>Synopsis:       zgrep's use of getopt breaks patterns containing whitespace
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec  3 21:00:01 PST 1997
>Closed-Date:    Mon Dec 8 11:22:10 PST 1997
>Last-Modified:  Mon Dec  8 11:23:32 PST 1997
>Originator:     John Lind
>Release:        2.2.5-RELEASE
>Organization:
Starfire Consulting Services
>Environment:
FreeBSD mirage.skypoint.net 2.2.5-RELEASE FreeBSD 2.2.5-RELEASE #1: Tue Dec  2 22:49:35 CST 1997     jlind@mirage.skypoint.net:/usr/src/sys/compile/MIRAGE  i386

>Description:
zgrep doesn't correctly handle patterns containing whitespace. The
pattern is divided into different parameters at the whitespace. This
problem is documented in the "getopt(1)" man page.
>How-To-Repeat:
zgrep "signal 4" /var/log/messages.0.gz
>Fix:
Revert to non getopt-based zgrep (FreeBSD 2.1.5 or before)
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: wosch 
State-Changed-When: Mon Dec 8 11:22:10 PST 1997 
State-Changed-Why:  

Fixed in src/gnu/usr.bin/gzip/zgrep.getopt rev 1.6 
Thanks for the hint! 
>Unformatted:
