[gPXE-devel] [PATCH 2/2] [util] Hide an expected error from which
Stefan Hajnoczi
stefanha at gmail.com
Thu Apr 1 09:22:43 EDT 2010
2010/4/1 Piotr JaroszyĆski <p.jaroszynski at gmail.com>:
> Hmm every box i have access to has which 2.20 and it does in fact
> report an error in that case.
> $ which foo
> /usr/bin/which: no foo in (...)
>
> I use bash which doesn't have a "which" builtin, maybe you use a shell
> that does?
$ dpkg-query -S /usr/bin/which
debianutils: /usr/bin/which
That explains it! You're right, we do need to suppress stderr.
Stefan
More information about the gPXE-devel
mailing list