[gPXE-devel] [PATCH 2/2] [util] Hide an expected error from which
Stefan Hajnoczi
stefanha at gmail.com
Thu Apr 1 04:15:03 EDT 2010
2010/3/29 Piotr Jaroszyński <p.jaroszynski at gmail.com>:
> # There should either be mkisofs or the compatible genisoimage program
> -mkisofs=`which mkisofs genisoimage | head -n1`
> +mkisofs=`which mkisofs genisoimage 2>/dev/null | head -n1`
No error is reported when the program cannot be found (i.e. 'which
asdf' is silent). So if which does report an error, it's probably
something the user should know about. That was my reasoning for not
supressing stderr.
Have you hit a noisy error message that should be supressed?
Stefan
More information about the gPXE-devel
mailing list