2011-11-08 00:16, Tanguy Ortolo skrev: >> (Also, I'm not sure why you would want to use -s.) > To avoid getting error messages, instead of getting them and thowing > them away by redirecting stderr. It looks cleaner to me, but I may be > wrong.
According to grep's man page, -s suppresses error messages about missing files. I don't think that applies to stdin (perhaps if you get "broken pipe"). I think the original code is wrong, it shouldn't redirect stderr from grep at all. If grep encounters an error (which is unlikely) it is better to display it. -- Pelle -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org