build: Specify full path to the grep utility in rvcmd.sh#1093
Open
mcoliver wants to merge 3 commits intoAcademySoftwareFoundation:mainfrom
Open
build: Specify full path to the grep utility in rvcmd.sh#1093mcoliver wants to merge 3 commits intoAcademySoftwareFoundation:mainfrom
mcoliver wants to merge 3 commits intoAcademySoftwareFoundation:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates all grep invocations in rvcmds.sh to use the full path /usr/bin/grep instead of relying on the shell's PATH resolution. This prevents issues when users have grep aliased to alternative tools like ripgrep or ag, which may interpret flags differently (e.g., the -E flag).
Changes:
- Updated all
grepcommands to use absolute path/usr/bin/grep - Changes span shell detection, hook installation, build error filtering, and user-facing help messages
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
some people have grep aliased to something else like rg which uses -E differently. Specifying the full path to the grep bin ensures we are using the right utility. Signed-off-by: Michael Oliver <mcoliver@gmail.com>
Signed-off-by: Michael Oliver <mcoliver@gmail.com>
mcoliver
commented
Mar 2, 2026
Contributor
Author
mcoliver
left a comment
There was a problem hiding this comment.
Updated to use command as per co-pilot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
some people have grep aliased to something else like rg which uses -E differently. Specifying the full path to the grep bin ensures we are using the right utility.
Linked issues
Fixes #1092
Summarize your change.
Full pathname to grep utility
Describe the reason for the change.
It's great that if the build fails it attempts to grep for things like errors. The issue is that sometime people (like me) have grep aliased to something like ripgrep or silver searcher (ag) which sometimes use flags differently. For example -E is different in gnu grep and ripgrep. Referencing the tool with the full pathname to ensure we are using /usr/bin/grep would be more deterministic.
Describe what you have tested and on which operating system.
macos
Add a list of changes, and note any that might need special attention during the review.
If possible, provide screenshots.