cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stuart Roebuck <stuart.roeb...@adolos.co.uk>
Subject Re: Mac OS X detection
Date Thu, 12 Jul 2001 17:29:30 GMT
Torsten,

Looking at the book, I think that in context:

	[ $( expr ... ) > 0 ]

the '>' is taken as a string comparitor not a piping instruction, but your 
right '-gt' is what it should be.  At least that explains why it worked 
when I tested it!

Stuart.

On Thursday, July 12, 2001, at 03:59  pm, Torsten Curdt wrote:

> One more... there was also a syntax error fix in the patch.
>
>  $(expr) > 0
>
> will do a pipe into file named "0"!
> It is supposed to be
>
>  $(expr) -gt 0
>
> Could you be so kind and change that to?
> Thanks!
> --
> Torsten
>
>> Thanks, fixed. Now it's turn for people with MacOS test this :)
>> Hope MacOS have compatible with Linux regexp...
>>
>> Vadim
>>
>>> -----Original Message-----
>>> From: Torsten Curdt [mailto:tcurdt@dff.st]
>>> Sent: Thursday, July 12, 2001 8:37
>>> To: Cocoon-Dev
>>> Subject: Mac OS X detection
>>>
>>>
>>> ...is not working "correctly" on my machine.
>>> (Linux SuSE 7.1)
>>>
>>> The build systems barfs at me that the "^"
>>> is not ok here:
>>>
>>> $( expr $OSTYPE : '^[dD]ardwin.*' )
>>>
>>> My man page says that '^' is implicitly
>>> prepended. Shall I provide a patch for
>>> this or is this a system specific thing?
>>> Can some people have a look? (info expr)
>>>
>>> Thanks
>>> --
>>> Torsten
>>


-------------------------------------------------------------------------
Stuart Roebuck                                  stuart.roebuck@adolos.com
Lead Developer                               Java, XML, MacOS X, XP, etc.
ADOLOS                                           <http://www.adolos.com/>

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message