ANNOUNCE: GHC 6.10.2 Release Candidate 1
Ian Lynagh
igloo at earth.li
Thu Mar 19 13:14:54 EDT 2009
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
More information about the Glasgow-haskell-users
mailing list