When I try to match the first character of a line grep also matches all subsequent characters: $ echo 123 | grep -o '^.' 1 2 3 Same with bsdgrep. grep from ports works as expected: $ echo 123 | /usr/local/bin/grep -o '^.' 1 Tested on 11.0. Bug 195763 looks related, but I'm not sure it's the same issue.
On Sun, Nov 27, 2016 at 2:52 PM, Stefan Ehmann <shoesoft at gmx.net> wrote:> Bug 195763 looks related, but I'm not sure it's the same issue.Hi, FYI- that bug is only tangentially related, but I've updated my patch to also address it while I'm in the neighborhood of where this problem was. See Comment #5 if you're interested in a more detailed explanation. Thanks, Kyle Evans