From owner-freebsd-bugs@FreeBSD.ORG Sun Jun 22 19:17:29 2014 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 48F44726 for ; Sun, 22 Jun 2014 19:17:29 +0000 (UTC) Received: from eastrmfepi101.cox.net (eastrmfepi101.cox.net [68.230.241.197]) by mx1.freebsd.org (Postfix) with ESMTP id E7AF72E66 for ; Sun, 22 Jun 2014 19:17:28 +0000 (UTC) Received: from eastrmimpo210 ([68.230.241.225]) by eastrmfepo202.cox.net (InterMail vM.8.01.05.15 201-2260-151-145-20131218) with ESMTP id <20140622184419.ZYCL22448.eastrmfepo202.cox.net@eastrmimpo210> for ; Sun, 22 Jun 2014 14:44:19 -0400 Received: from [192.168.3.22] ([72.219.202.186]) by eastrmimpo210 with cox id HWkK1o00D41obj401WkKEG; Sun, 22 Jun 2014 14:44:19 -0400 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A020209.53A72403.00BD,ss=1,re=0.000,fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=2.0 cv=aZC/a2Ut c=1 sm=1 a=k40gPPfQ5QH6qv5U/EJc3Q==:17 a=f5xKl4ys9bwA:10 a=POROFnHSEfMA:10 a=G8Uczd0VNMoA:10 a=Wajolswj7cQA:10 a=8nJEP1OIZ-IA:10 a=kviXuzpPAAAA:8 a=6I5d2MoRAAAA:8 a=wXekYQPh7n6EIaB9sf0A:9 a=wPNLvfGTeEIA:10 a=SV7veod9ZcQA:10 a=k40gPPfQ5QH6qv5U/EJc3Q==:117 X-CM-Score: 0.00 Authentication-Results: cox.net; none Message-ID: <53A7246C.4050804@cox.net> Date: Sun, 22 Jun 2014 14:46:04 -0400 From: "John D. Hendrickson and Sara Darnell" Reply-To: johnandsara2@cox.net User-Agent: Thunderbird 2.0.0.24 (X11/20100228) MIME-Version: 1.0 To: bz-noreply@freebsd.org Subject: Re: [Bug 191086] New: grep and bsdgrep do not recognize [[:<:]] and [[:>:]] References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bugs@FreeBSD.org X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jun 2014 19:17:29 -0000 bz-noreply@freebsd.org wrote: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191086 > > Bug ID: 191086 > Summary: grep and bsdgrep do not recognize [[:<:]] and [[:>:]] > Product: Base System > Version: 9.2-RELEASE > Hardware: Any > OS: Any > Status: Needs Triage > Severity: Affects Many People > Priority: --- > Component: bin > Assignee: freebsd-bugs@FreeBSD.org > Reporter: weeks@iastate.edu > > grep and bsdgrep do not recognize the '[[:<:]]' or '[[:>:]]' bracket > expressions described in re_format(7), though sed does: > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > $ printf 'foobar\nfoo bar\nbaz' | grep 'foo[[:>:]]' > grep: Invalid character class name > $ printf 'foobar\nfoo bar\nbaz' | grep '[[:<:]]bar' > grep: Invalid character class name > $ printf 'foobar\nfoo bar\nbaz' | bsdgrep 'foo[[:>:]]' > bsdgrep: Invalid character class name > $ printf 'foobar\nfoo bar\nbaz' | bsdgrep '[[:<:]]bar' > bsdgrep: Invalid character class name > $ printf 'foobar\nfoo bar\nbaz' | sed -n '/foo[[:>:]]/p' > foo bar > $ printf 'foobar\nfoo bar\nbaz' | sed -n '/[[:<:]]bar/p' > foo bar > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > i've never heard it should support [:<:] i've heard \< is a gnu option not all support what is your citation showing any standard defines this and that you should be allowed to make changes (which maybe will cause other problems if you are incorrect) ? please, thank you