HomeFreeBSD

Fix remaining zgrep(1) wrapper script regressions

Description

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.

Reviewed By: markj

Differential Revision: https://reviews.freebsd.org/D48873

(cherry picked from commit 1070477cc8b7a88b1fd2b1ba810a1fff761799a1)

Details

Provenance
leresAuthored on Feb 8 2025, 9:19 PM
Reviewer
markj
Differential Revision
D48873: Fix remaining zgrep(1) wrapper script regressions
Parents
rG7cc02662711c: mtree: tests: Import NetBSD's mtree test suite
Branches
Unknown
Tags
Unknown