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

OSX: sed -r isn't available #2

Closed
rstacruz opened this issue Jan 15, 2016 · 3 comments · Fixed by #4
Closed

OSX: sed -r isn't available #2

rstacruz opened this issue Jan 15, 2016 · 3 comments · Fixed by #4

Comments

@rstacruz
Copy link

The post-commit hook gets me this:

sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
       sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
@rstacruz
Copy link
Author

...Well, yes, it seems only GNU sed is supported. For us peasants on OSX, use Homebrew to install GNU sed like so:

brew reinstall gnu-sed --with-default-names

@rstacruz
Copy link
Author

okay, but there's still a problem with grep:

usage: grep [-abcDEFGHhIiJLlmnOoqRSsUVvwxZ] [-A num] [-B num] [-C[num]]
        [-e pattern] [-f file] [--binary-files=value] [--color=when]
        [--context[=num]] [--directories=action] [--label] [--line-buffered]
        [--null] [pattern] [file ...]

@jryio
Copy link
Owner

jryio commented Jan 16, 2016

I made a quick Pull Request to remove a stray GNU grep style command from the post-commit hook. Thanks for bringing this to my attention.

Test out the PR branch if you could and let me know if you run into any more POSIX/GNU issues!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants