From 1e79c362668079fa8916826d0a415d5bf9f18c8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laurent=20Th=C3=A9venoux?= Date: Wed, 8 Sep 2021 23:49:10 +0200 Subject: [PATCH] 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. --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 73bec2ca0..fe60dc5bf 100644 --- a/README.md +++ b/README.md @@ -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