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

grep -o not available in git bash for Windows #59

Open
bryanburgers opened this issue Sep 9, 2015 · 2 comments
Open

grep -o not available in git bash for Windows #59

bryanburgers opened this issue Sep 9, 2015 · 2 comments

Comments

@bryanburgers
Copy link

The grep in git bash for Windows does not support the -o option. grep -o plays a pretty big part in the (staged|conflicted|unstaged|untracked)_status, which means that, on Windows, using git-radar results in the following message repeated about 20 times.

grep: invalid option -- o
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
@hallzy
Copy link
Contributor

hallzy commented Nov 6, 2015

looks like these guys had a similar problem here. That link will take you to a comment that says that possibly upgrading grep to a newer version may solve the problem...

Alternatively, it is possible that maybe we can use sed instead, assuming that git bash has support for sed.

@hallzy
Copy link
Contributor

hallzy commented Nov 6, 2015

Alternatively (again) I have also found this gist which appears to be a bash script that will upgrade your grep on git bash for you.

It looks like it assumes you have 7-zip though, so if you don't have that you will probably have to install it in order to use this.

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