From owner-freebsd-bugs Sat Apr 19 03:40:12 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA08583 for bugs-outgoing; Sat, 19 Apr 1997 03:40:12 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA08568; Sat, 19 Apr 1997 03:40:07 -0700 (PDT) Resent-Date: Sat, 19 Apr 1997 03:40:07 -0700 (PDT) Resent-Message-Id: <199704191040.DAA08568@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, obrien@freebsd.org 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 ; 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 ; 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" Reply-To: obrien@freebsd.org To: FreeBSD-gnats-submit@freebsd.org Cc: obrien@dragon.nuxi.com X-Send-Pr-Version: 3.2 Subject: bin/3349: zgrep script does not understand ``--'' to end option list Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >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: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Apr 19 03:40:03 PDT 1997 >Last-Modified: >Originator: David O'Brien >Organization: The FreeBSD Project. >Release: FreeBSD 2.2-STABLE i386 >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] ] [-HRPS] [-CEFGLVabchilnqsvwx] [-e ] [-f file] [files ...] >Fix: Ask Joerg/Ollivier to rewrite it in Perl??? :-) J/K >Audit-Trail: >Unformatted: