Date: Wed, 3 Dec 1997 20:52:39 -0800 (PST) From: john@starfire.mn.org To: freebsd-gnats-submit@FreeBSD.ORG Subject: bin/5211: zgrep's use of getopt breaks patterns containing whitespace Message-ID: <199712040452.UAA19007@hub.freebsd.org> Resent-Message-ID: <199712040500.VAA19419@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Dec 3 21:00:01 PST 1997 >Last-Modified: >Originator: John Lind >Organization: Starfire Consulting Services >Release: 2.2.5-RELEASE >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) >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712040452.UAA19007>