Repository navigation
grep: print context matches with -v -o - #235
yunusarda-sudo wants to merge 2 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #235 +/- ##
==========================================
- Coverage 97.19% 97.17% -0.02%
==========================================
Files 6 6
Lines 2248 2268 +20
Branches 243 246 +3
==========================================
+ Hits 2185 2204 +19
- Misses 63 64 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Merging this PR will not alter performanceWarning uutils has exceeded the Hobby plan limit of 5 active contributors. Upgrade your plan or apply to the open source program by December 8, 2026 to keep using CodSpeed. 1 warning
Comparing Footnotes
|
With -v, selected lines have no match to show under -o, so GNU grep prints the matches found on the surrounding context lines instead. Closes uutils#209.
7925d68 to
e2423d1
Compare
With
-v, the selected lines have no match for-oto print. GNU grep still prints the matches found on the surrounding context lines (2-dograther than an empty result).only_matchingstill suppresses context when-vis not used.Closes #209.