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

_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to