From obrien@dragon.nuxi.com  Sat Apr 19 03:32:38 1997
Received: from relay.nuxi.com (nuxi.ucdavis.edu [128.120.175.23])
          by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA08261
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 19 Apr 1997 03:32:38 -0700 (PDT)
Received: from dragon.nuxi.com (reqf-062.ucdavis.edu [128.120.253.182]) by relay.nuxi.com (8.8.5/8.6.12) with ESMTP id CAA03417 for <FreeBSD-gnats-submit@freebsd.org>; Sat, 19 Apr 1997 02:41:51 GMT
Received: (from obrien@localhost) by dragon.nuxi.com (8.8.5/8.7.3) id KAA13417; Sat, 19 Apr 1997 10:32:36 GMT
Message-Id: <199704191032.KAA13417@dragon.nuxi.com>
Date: Sat, 19 Apr 1997 10:32:36 GMT
From: "David O'Brien" <obrien@NUXI.com>
Reply-To: obrien@freebsd.org
To: FreeBSD-gnats-submit@freebsd.org
Cc: obrien@dragon.nuxi.com
Subject: zgrep script does not understand ``--'' to end option list
X-Send-Pr-Version: 3.2

>Number:         3349
>Category:       bin
>Synopsis:       zgrep script does not understand ``--'' to end option list
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 19 03:40:03 PDT 1997
>Closed-Date:    Sat Apr 19 13:07:24 PDT 1997
>Last-Modified:  Sat Apr 19 13:08:35 PDT 1997
>Originator:     David O'Brien
>Release:        FreeBSD 2.2-STABLE i386
>Organization:
The FreeBSD Project.
>Environment:

	n/a

>Description:

	The /usr/bin/zgrep sh script does not understand `--' to end processing
	of command options.  This means one cannot search for a string starting
	with a dash because `--' isn't passed to grep.

>How-To-Repeat:

	zgrep -- -l /usr/share/man/man3/*

	gives repeated errors of:
	usage: grep [-[AB] <num>] [-HRPS] [-CEFGLVabchilnqsvwx]
				[-e <expr>] [-f file] [files ...]

>Fix:
	
	Ask Joerg/Ollivier to rewrite it in Perl???  :-)  J/K

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: wosch 
State-Changed-When: Sat Apr 19 13:07:24 PDT 1997 
State-Changed-Why:  
Fixed. Thanks for your report! 
>Unformatted:
