Philip Martin wrote:
>Branko ÄŒibej <brane@xbc.nu> writes:
>
>
>
>>Julian Foad wrote:
>>
>>
>>
>>>Branko ÄŒibej wrote:
>>>
>>>
>>>
>>>>brane@mithril:~$ expr '0.9.5' : '0\.9\.[5-9]\|0\.9\.[1-9][0-9]'
>>>>0
>>>>
>>>>
>>>Thanks. I don't know why that doesn't work as I expect it to and as
>>>it works on most systems, but I've reverted that part of the change
>>>in r12044.
>>>
>>>
>>I tried several variants, but not one with '\|' worked. I don't know
>>why, either.
>>
>>
>
>It's an extended RE and the FreeBSD manpage expr(1) states that a
>basic RE is to be used, thus '|' is a literal not an operator.
>
>
Yes, '|' is a literal in basic RE, but '\|' should be an operator. Same
goes for '()' vs. '\(\)'. At least that's how basic REs work on all the
systems I've ever worked with...
Ah well, we can always pipe through egrep instead and use extended REs,
which are nicer to read anyway.
-- Brane
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Nov 26 19:08:17 2004