Re: [arch-projects] [dbscripts] [PATCH 07/11] test/lib/common.inc: use `grep &>/dev/null` instead of `grep -q`.

2015-05-21 Thread Luke Shumaker
On Sun, 17 May 2015 20:38:33 -0400, Dave Reisner wrote: > > On Sun, May 17, 2015 at 07:44:15PM -0400, Luke Shumaker wrote: > > `grep -q` may exit as soon as it finds a match; the program piped in to it > > might not be finished writing, and consequently print a message about a > > "write error" to

Re: [arch-projects] [dbscripts] [PATCH 07/11] test/lib/common.inc: use `grep &>/dev/null` instead of `grep -q`.

2015-05-17 Thread Dave Reisner
On Sun, May 17, 2015 at 07:44:15PM -0400, Luke Shumaker wrote: > `grep -q` may exit as soon as it finds a match; the program piped in to it > might not be finished writing, and consequently print a message about a > "write error" to stderr. > > I'll add that this is not purely hypothetical--it hap

[arch-projects] [dbscripts] [PATCH 07/11] test/lib/common.inc: use `grep &>/dev/null` instead of `grep -q`.

2015-05-17 Thread Luke Shumaker
`grep -q` may exit as soon as it finds a match; the program piped in to it might not be finished writing, and consequently print a message about a "write error" to stderr. I'll add that this is not purely hypothetical--it happened to me while testing. --- test/lib/common.inc | 8 1 file