Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jan 2017 14:50:10 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 191086] grep(1) and bsdgrep(1) do not recognize [[:<:]] and [[:>:]]
Message-ID:  <bug-191086-8-wrozJWQOcD@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-191086-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-191086-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D191086

--- Comment #2 from weeks@iastate.edu ---
OK. It's interesting to note that OS X 10.11.6, which also uses bsdgrep, do=
es
support the '[[:<:]]' and '[[:>:]]' bracket expressions:

$ uname -srv
Darwin 15.6.0 Darwin Kernel Version 15.6.0: Mon Jan  9 23:07:29 PST 2017;
root:xnu-3248.60.11.2.1~1/RELEASE_X86_64
$ type grep
grep is a tracked alias for /usr/bin/grep
$ grep --version
grep (BSD grep) 2.5.1-FreeBSD
$ printf 'foobar\nfoo bar\nbaz' | grep 'foo[[:>:]]'
foo bar
$ printf 'foobar\nfoo bar\nbaz' | grep '[[:<:]]bar'
foo bar

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-191086-8-wrozJWQOcD>