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

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

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2006-03-26 23:54:23 CEST

Peter N. Lundblad wrote:
> > Modified: trunk/configure.in
> > URL: http://svn.collab.net/viewvc/svn/trunk/configure.in?pathrev=19039&r1=19038&r2=19039
> > ==============================================================================
> > --- trunk/configure.in (original)
> > +++ trunk/configure.in Sun Mar 26 06:25:29 2006
> > @@ -51,13 +51,12 @@
> > dnl - APR_LARGEFILE added
> > dnl - APR_GSETID added
> > dnl - bug in apr_temp_dir_get() fixed
> > -APR_VER_REGEX=["0\.9\.[5-9]"]
> > -APR_VER_REGEX_TOO="1\."
> > -APU_VER_REGEX=["0\.9\.[5-9]"]
> > -APU_VER_REGEX_TOO="1\."
> >
> > -SVN_LIB_APR($APR_VER_REGEX, $APR_VER_REGEX_TOO)
> > -SVN_LIB_APRUTIL($APU_VER_REGEX, $APU_VER_REGEX_TOO)
> > +APR_VER_REGEXES=["0\.9\.[5-9] 0.9.1[0-9] 1."]
> > +APU_VER_REGEXES=["0\.9\.[5-9] 0.9.1[0-9] 1."]
>
> Just out of curiousity, is the | (or \|) operator not portable in a basic
> regex? It works on my machine, but that might be a GNU extension?

The alternation operator is not valid in a portable Basic RegEx: see
<http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap09.html#tag_09_03>

Also, there's the added complication that this BRE is processed by the utility
"expr" which changes its output if you use parentheses for grouping, which you
probably would want to do if you used alternation.

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Mar 26 23:54:48 2006

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.