Date: Sun, 27 Nov 2016 21:52:37 +0100 From: Stefan Ehmann <shoesoft@gmx.net> To: freebsd-stable@freebsd.org Subject: unexpected grep -o behavior Message-ID: <b70e8022-d8f8-24ce-f571-40b07c07c6e1@gmx.net>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b70e8022-d8f8-24ce-f571-40b07c07c6e1>