libgo patch committed: redirect grep output to /dev/null

Ian Lance Taylor
Fri Nov 19 17:46:46 GMT 2021

On Fri, Nov 19, 2021 at 3:47 AM Bernhard Reutner-Fischer via
Gcc-patches <> wrote:
> On Fri, 28 Oct 2016 10:55:18 -0700
> Ian Lance Taylor <> wrote:
> > This patch to libgo redirects the output of a grep command in
> > to /dev/null.  The output otherwise appears in the
> grep -q exists since at least SUSv2, fwiw.

There has traditionally been confusion between grep -q and grep -s.
Older grep programs supported -s but not -q.  Perhaps that confusion
is all cleared up now on all systems that GCC supports.  I don't know.
I do know that the patch I applied five years ago works everywhere.


More information about the Gcc-patches mailing list