Date: Sat, 19 Apr 1997 10:32:36 GMT From: "David O'Brien" <obrien@NUXI.com> To: FreeBSD-gnats-submit@freebsd.org Cc: obrien@dragon.nuxi.com Subject: bin/3349: zgrep script does not understand ``--'' to end option list Message-ID: <199704191032.KAA13417@dragon.nuxi.com> Resent-Message-ID: <199704191040.DAA08568@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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] <num>] [-HRPS] [-CEFGLVabchilnqsvwx] [-e <expr>] [-f file] [files ...] >Fix: Ask Joerg/Ollivier to rewrite it in Perl??? :-) J/K >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704191032.KAA13417>