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

Unsupported grep -P option on Mac OS #1

Closed
mbroadhead opened this issue Dec 28, 2020 · 1 comment
Closed

Unsupported grep -P option on Mac OS #1

mbroadhead opened this issue Dec 28, 2020 · 1 comment
Assignees
Labels
bug Something isn't working verified This issue was already verified

Comments

@mbroadhead
Copy link

Hi,
Thanks for authoring this plugin.
Mac OS uses BSD grep rather than GNU grep. Because of this, grep's -P, --perl-regexp option is not available on Mac OS . This causes a bunch of error lines to be output every time you start a new shell with this plugin enabled:
usage: grep [-abcDEFGHhIiJLlmnOoqRSsUVvwxZ] [-A num] [-B num] [-C[num]]

Here are a few options to support Mac OS:

I'll look into this further when I get a chance.

My OS:

~ sw_vers
ProductName:	macOS
ProductVersion:	11.1
BuildVersion:	20C69
@jeffreytse jeffreytse self-assigned this Dec 28, 2020
@jeffreytse jeffreytse added the bug Something isn't working label Dec 28, 2020
@jeffreytse
Copy link
Owner

Hi @mbroadhead

Hope you have a nice day. Also, thanks for your good help and support on this plugin.

Thanks and regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working verified This issue was already verified
Projects
None yet
Development

No branches or pull requests

2 participants