opnsense-src/usr.bin/grep
Craig Leres 1070477cc8 Fix remaining zgrep(1) wrapper script regressions
Summary:
Fix short flags without whitespace, e.g:

    zgrep -wefoo test

Fix multiple -e flags:

    zgrep -e foo -e xxx test

Previously only the last pattern would be used.

Clean up possible leading blank in ${grep_args}.

Update comment: 2.51 -> 2.6.0

Add a test case for the last known zgrep wrapper issue: recursion
(-r) not implemented.

Reviewers: markj, kevans, ngie, bapt

Reviewed By: markj

Subscribers: imp

Differential Revision: https://reviews.freebsd.org/D48873
2025-02-09 10:45:03 -08:00
..
tests Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
file.c usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
grep.1 usr.bin: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
grep.c grep: Default to -p instead of -S. 2024-09-04 15:53:22 -04:00
grep.h Remove my middle name. 2023-08-17 15:08:30 +02:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend.options Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
queue.c usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
util.c grep: Fix various bugs in recursive tree handling 2024-09-04 15:53:17 -04:00
zgrep.1 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
zgrep.sh Fix remaining zgrep(1) wrapper script regressions 2025-02-09 10:45:03 -08:00