README: fix macOS prerequisites regarding grep (#15038)

The --with-default-names option seems to not exists anymore. A directory have to be added to PATH instead.
This commit is contained in:
Laurent Thévenoux 2021-09-08 23:49:10 +02:00 committed by GitHub
parent a3b40d2318
commit 1e79c36266
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 2 deletions

View File

@ -253,10 +253,18 @@ packages may fail. In this case it is possible to install using
be transferred using http, use at your own risk.
You might also have some issues when doing some search on your projects, you
probably want to install grep through homebrew with default names:
probably want to install GNU [grep](https://formulae.brew.sh/formula/grep)
through homebrew:
```sh
$ brew install grep --with-default-names
$ brew install grep
```
By default, all commands are installed with the prefix `g`. To use them with
their normal names, you should add a `gnubin` directory to your PATH:
```
$ PATH="$(brew --prefix)/opt/grep/libexec/gnubin:$PATH"
```
### Windows