[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: rev 7225 - in trunk: . build/ac-macros

From: Branko Čibej <brane_at_xbc.nu>
Date: 2003-09-29 01:33:50 CEST

Bill Newcomb wrote:

>=?UTF-8?B?QnJhbmtvIMSMaWJlag==?= <brane@xbc.nu> writes:
>
>
>
>>Aha! I suspected your patch would do something like this. :-)
>>Unfortunately, that woun't work; those regular expressions are tested
>>with 'expr', which does not understand the | operator (at least, it
>>doesn't on FreeBSD). In fact, the first thing I tried was exactly what
>>you did here.
>>
>>We could use 'grep' instead of 'expr'. Does anyone know why we don't?
>>
>>
>
>Plain grep on many systems won't work with '|':
>
>
Plain grep should work with \| everywhere, though.

>$ uname -sr
>FreeBSD 4.8-STABLE
>$ cat /tmp/this;
>a
>b
>$ grep 'a|b' /tmp/this
>$ egrep 'a|b' /tmp/this
>a
>b
>
>egrep works on Linux, FreeBSD, and Solaris8, I believe. Dunno about
>others.
>
>

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Sep 29 01:34:26 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.