Skip to content

Dev/lh/grep#4

Merged
polyedre merged 2 commits into
mainfrom
dev/lh/grep
Mar 11, 2026
Merged

Dev/lh/grep#4
polyedre merged 2 commits into
mainfrom
dev/lh/grep

Conversation

@polyedre
Copy link
Copy Markdown
Owner

No description provided.

Lucas Henry added 2 commits March 11, 2026 16:41
This aligns the grep command behavior with the standard Unix grep utility:
- Exit code 0: matches found
- Exit code 1: error occurred
- Exit code 2: no matches found

The changes also properly handle multiple file and directory searches by
aggregating results across all files and only returning 'no matches' if
none of the searched files produced any matches.
@polyedre polyedre merged commit 1bafaed into main Mar 11, 2026
2 checks passed
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