Date: Sun, 22 Jun 2014 14:46:04 -0400 From: "John D. Hendrickson and Sara Darnell" <johnandsara2@cox.net> To: bz-noreply@freebsd.org Cc: freebsd-bugs@FreeBSD.org Subject: Re: [Bug 191086] New: grep and bsdgrep do not recognize [[:<:]] and [[:>:]] Message-ID: <53A7246C.4050804@cox.net> In-Reply-To: <F1ZN1o01w2X408g011ZPxW> References: <F1ZN1o01w2X408g011ZPxW>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53A7246C.4050804>