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:[EMAIL PROTECTED]]
>>> 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 [EMAIL PROTECTED]
Lead Developer Java, XML, MacOS X, XP, etc.
ADOLOS <http://www.adolos.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]