Craig Leres c4cbf1fbab Fix some regressions with the zgrep(1) wrapper.
- Handle whitespace with long flags that take arguments:

	echo 'foo bar' > test
	zgrep --regexp='foo bar' test

 - Do not hang reading from stdin with patterns in a file:

	echo foobar > test
	echo foo > pattern
	zgrep -f pattern test
	zgrep --file=pattern test

 - Handle any flags after -e:

	echo foobar > test
	zgrep -e foo --ignore-case < test

These two are still outstanding problems:

 - Does not handle flags that take an argument if there is no
   whitespace:

	zgrep -enfs /etc/rpc

 - When more than one -e pattern used matching should occur for all
   patterns (similar to multiple patterns supplied with -f file).
   Instead only the last pattern is used for matching:

	zgrep -e rex -e nfs /etc/rpc

   (This problem is masked in the unpatched version by the "any
   flags after -e" problem.)

Add tests for the above problems.

Update the mange and add references to gzip(1) and zstd(1) and also
document the remaining known problems.

PR:		247126
Approved by:	markj
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D25613
2020-07-20 23:57:53 +00:00
..
2020-07-12 01:11:48 +00:00
2019-11-01 11:28:43 +00:00
2020-05-04 17:16:30 +00:00
2020-03-29 02:40:03 +00:00
2020-05-20 20:58:48 +00:00
2019-12-21 21:05:53 +00:00
2020-01-25 21:16:45 +00:00
2020-02-19 17:09:08 +00:00
2020-07-10 19:58:07 +00:00
2020-06-24 01:51:05 +00:00
2020-06-22 22:59:03 +00:00
2020-07-15 13:26:15 +00:00
2020-04-19 02:20:39 +00:00
2020-06-17 10:42:20 +00:00
2019-11-20 23:56:20 +00:00
2020-07-07 19:09:38 +00:00
2020-06-22 07:46:24 +00:00
2020-06-17 11:57:48 +00:00
2020-04-24 05:05:58 +00:00
2020-05-21 21:00:46 +00:00
2020-06-09 05:43:51 +00:00