[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: Bill Newcomb <nuke_at_juniper.net>
Date: 2003-09-29 01:30:11 CEST

=?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 '|':

$ 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.

Cheers,
-B.

---------------------------------------------------------------------
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:30:52 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.