Skip to content

fix: parse repeated -e/--regexp/--file in zstdgrep - #1

Open
vulragrag-star wants to merge 1 commit into
devfrom
fix/zstdgrep-regexp-options
Open

vulragrag-star wants to merge 1 commit into
devfrom
fix/zstdgrep-regexp-options

Conversation

@vulragrag-star

Copy link
Copy Markdown
Owner

Internal CI PR on fork for facebook#2064. Upstream later after cadence. Original BSD evolution; not gzip zgrep.

Stop breaking after the first -e, and consume --regexp/--file
(with and without '=') so later pattern options are not treated
as files. Patterns live in grep_args; no positional pattern is
stolen once any pattern option is seen.

This is a small original evolution of the existing BSD zstdgrep
script, not a reintroduction of the reverted gzip-zgrep-derived
rewrite. See facebook#2064.

Signed-off-by: Jason Wang <vulragrag@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant