opnsense-src/contrib/netbsd-tests/usr.bin/grep
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
..
d_basic.out
d_begin_end_a.out
d_begin_end_b.out
d_binary.out
d_color_a.in bsdgrep: create additional tests for coverage on recent fixes 2017-04-05 18:41:44 +00:00
d_color_a.out bsdgrep: create additional tests for coverage on recent fixes 2017-04-05 18:41:44 +00:00
d_color_b.in bsdgrep: create additional tests for coverage on recent fixes 2017-04-05 18:41:44 +00:00
d_color_b.out bsdgrep: create additional tests for coverage on recent fixes 2017-04-05 18:41:44 +00:00
d_color_c.out bsdgrep: create additional tests for coverage on recent fixes 2017-04-05 18:41:44 +00:00
d_context2_a.out
d_context2_b.out
d_context2_c.out
d_context_a.in
d_context_a.out
d_context_b.in
d_context_b.out
d_context_c.out
d_context_d.out
d_context_e.in bsdgrep: fix -w flag matching with an empty pattern 2017-05-02 20:39:33 +00:00
d_context_e.out bsdgrep: fix -w flag matching with an empty pattern 2017-05-02 20:39:33 +00:00
d_context_f.out bsdgrep: fix -w flag matching with an empty pattern 2017-05-02 20:39:33 +00:00
d_context_g.out bsdgrep: fix -w flag matching with an empty pattern 2017-05-02 20:39:33 +00:00
d_egrep.out
d_escmap.in bsdgrep: create additional tests for coverage on recent fixes 2017-04-05 18:41:44 +00:00
d_f_file_empty.in bsdgrep: create additional tests for coverage on recent fixes 2017-04-05 18:41:44 +00:00
d_file_exp.in
d_file_exp.out
d_ignore_case.out
d_input
d_invert.in
d_invert.out
d_oflag_zerolen_a.in bsdgrep: create additional tests for coverage on recent fixes 2017-04-05 18:41:44 +00:00
d_oflag_zerolen_a.out bsdgrep: create additional tests for coverage on recent fixes 2017-04-05 18:41:44 +00:00
d_oflag_zerolen_b.in bsdgrep: create additional tests for coverage on recent fixes 2017-04-05 18:41:44 +00:00
d_oflag_zerolen_b.out bsdgrep: create additional tests for coverage on recent fixes 2017-04-05 18:41:44 +00:00
d_oflag_zerolen_c.in bsdgrep: create additional tests for coverage on recent fixes 2017-04-05 18:41:44 +00:00
d_oflag_zerolen_c.out bsdgrep: create additional tests for coverage on recent fixes 2017-04-05 18:41:44 +00:00
d_oflag_zerolen_d.in bsdgrep: create additional tests for coverage on recent fixes 2017-04-05 18:41:44 +00:00
d_oflag_zerolen_e.in bsdgrep: create additional tests for coverage on recent fixes 2017-04-05 18:41:44 +00:00
d_oflag_zerolen_e.out bsdgrep: create additional tests for coverage on recent fixes 2017-04-05 18:41:44 +00:00
d_recurse.out
d_recurse_symlink.err
d_recurse_symlink.out
d_whole_line.out
d_word_regexps.out
d_zgrep.out
t_grep.sh Fix some regressions with the zgrep(1) wrapper. 2020-07-20 23:57:53 +00:00