digital-asset / ex-java-bindings

Three examples demonstrating three different approaches to using the Java ledger API bindings
Apache License 2.0
12 stars 9 forks source link

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

Open wallacekelly-da opened 1 year ago

wallacekelly-da commented 1 year ago

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.