Skip to content

Conversation

@cakebaker
Copy link
Contributor

The original pgrep shows a message if the pattern is longer than 15 chars:

$ pgrep 123456789012345
$ pgrep 1234567890123456
pgrep: pattern that searches for process name longer than 15 characters will result in zero matches
Try `pgrep -f' option to match against the complete command line.

We showed this message if the pattern was 15 chars or longer. This PR fixes the issue.

@Krysztal112233 Krysztal112233 merged commit a0cec00 into uutils:main Feb 20, 2025
14 checks passed
@codecov
Copy link

codecov bot commented Feb 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.00%. Comparing base (43f7412) to head (a044ad4).
Report is 3 commits behind head on main.

Additional details and impacted files
@@     Coverage Diff     @@
##   main   #329   +/-   ##
===========================
===========================

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cakebaker cakebaker deleted the pgrep_dont_show_msg_if_pattern_is_15_chars branch February 20, 2025 06:09
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.

2 participants