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: we...@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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-- 
Nathan Weeks
IT Specialist
USDA-ARS Corn Insects and Crop Genetics Research Unit
Crop Genome Informatics Laboratory
Iowa State University
http://weeks.public.iastate.edu/

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to