Skip to content

specify full path to the grep utility#1093

Open
mcoliver wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
mcoliver:fix-grep-path
Open

specify full path to the grep utility#1093
mcoliver wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
mcoliver:fix-grep-path

Conversation

@mcoliver
Copy link
Contributor

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.

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>
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.

[Bug]: build errors grep not working when grep is aliased

1 participant