ANNOUNCE: GHC 6.10.2 Release Candidate 1
Christian Maeder
Christian.Maeder at dfki.de
Thu Mar 19 13:51:43 EDT 2009
Ian Lynagh wrote:
> 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 $?
Yes, Christian
-bash-3.00$ echo foo | grep foo > /dev/null; echo $?
0
-bash-3.00$ echo foo | grep bar > /dev/null; echo $?
1
More information about the Glasgow-haskell-users
mailing list