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: invalid option -- P" when running start.sh on Mac #17

Open
wallacekelly-da opened this issue Jan 18, 2023 · 0 comments
Open

"grep: invalid option -- P" when running start.sh on Mac #17

wallacekelly-da opened this issue Jan 18, 2023 · 0 comments

Comments

@wallacekelly-da
Copy link

I was working through this repo's example on a Mac. When I got to this step...

Use the start script for starting a ledger & the java application:

...I tried running ./start.sh examples.pingpong.grpc.PingPongGrpcMain and received this error message...

grep: invalid option -- P
usage: grep [-abcdDEFGHhIiJLlMmnOopqRSsUVvwXxZz] [-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 ...]

Googling suggests that some (but not all) versions of grep include flags -P, --perl-regexp

I suppose the regular expressions in start.sh should be converted from a Perl regex to a basic regex.

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

1 participant