Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BSD grep not detected properly :) #1

Closed
VincentKempers opened this issue Mar 11, 2024 · 4 comments
Closed

BSD grep not detected properly :) #1

VincentKempers opened this issue Mar 11, 2024 · 4 comments

Comments

@VincentKempers
Copy link

When using BSD grep no warning shows up reminding you to use the (right) GNU grep.

 /usr/bin/grep --version
grep (BSD grep, GNU compatible) 2.6.0-FreeBSD
@wrynegade
Copy link
Owner

Ahh yeah that's because of

$UTIL --version 2>&1 | grep -q 'GNU' || {

Those tricksters have fooled me yet again!

@wrynegade
Copy link
Owner

"GNU compatible" lmao

@VincentKempers
Copy link
Author

greeeeeeeeep

BSD GREEEEEEPP!

@wrynegade
Copy link
Owner

Although not particularly elegant, there's not a really standard output from all the --version outputs of these utilities, so I've included a fix which detects this case in addition to the previous checks to help throw warnings on BSD utilties.

This is live as of the 4.1.3 release

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

No branches or pull requests

2 participants