emaste fd96449160 bsdgrep: fix zero-length matches without the -o flag
r316477 broke zero-length matches when not using the -o flag, by
skipping over them entirely.

Add a regression test so that it doesn't break again in the future.

Submitted by:	Kyle Evans <kevans91 at ksu.edu>
Reviewed by:	cem emaste ngie
Differential Revision:	https://reviews.freebsd.org/D10333
2017-04-17 14:59:55 +00:00
..
2016-11-14 00:33:03 +00:00
2017-04-15 01:44:45 +00:00
2017-03-01 21:55:49 +00:00
2016-07-01 05:48:45 +00:00
2016-11-07 15:54:47 +00:00
2016-04-20 17:58:13 +00:00
2017-03-02 01:14:48 +00:00
2017-04-03 12:26:20 +00:00
2016-07-30 01:16:06 +00:00
2017-02-19 17:37:16 +00:00
2017-02-28 23:42:47 +00:00
2017-02-19 17:46:37 +00:00
2017-02-06 08:49:57 +00:00
2017-03-23 22:06:06 +00:00
2017-03-16 21:32:05 +00:00
2017-01-30 16:32:53 +00:00
2017-02-28 23:42:47 +00:00
2016-08-24 12:32:24 +00:00
2017-03-25 14:14:11 +00:00
2017-02-28 23:42:47 +00:00
2017-03-27 21:00:49 +00:00
2016-09-29 18:24:29 +00:00
2017-01-06 07:54:53 +00:00
2017-01-17 05:55:47 +00:00