
19 Mar
2009
19 Mar
'09
1:14 p.m.
On Mon, Mar 16, 2009 at 04:00:09PM +0100, Christian Maeder wrote:
Under Solaris grep does not understand "-q" in configure:
checkMake380() { if $1 --version 2>&1 | head -1 | grep -q 'GNU Make 3\.80'
it fails with:
grep: illegal option -- q Usage: grep -hblcnsviw pattern file . . . grep: illegal option -- q Usage: grep -hblcnsviw pattern file . . .
OK, I'll just redirect stdout to /dev/null then. Presumably these print 0 and 1 respectively? echo foo | grep foo > /dev/null; echo $? echo foo | grep bar > /dev/null; echo $? Thanks Ian