[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: editfiles not working!?

From: Mark . Burgess
Subject: Re: editfiles not working!?
Date: Mon, 3 Jun 2002 18:08:02 +0200 (MET DST)

Posix defines a set of regular expression primitives which
cfengine uses. It does not specify how much a string a regular
expression should match. 

It is perfectly possible that there is confusion in the 
documentation, but


matches only 2 symbols according to posix.


On  3 Jun, Bruce Richardson wrote:
> On Mon, Jun 03, 2002 at 05:18:28PM +0200, address@hidden wrote:
>> There is no "way that regexes are supposed to work". There
>> are as many models for using regexes as there are programs
>> to use.
> There's a POSIX standard for regexes.  Implementations differ on how
> much of the featureset they implement but common to all of them is that
> .* is implied both before and after the pattern unless over-ridden by a
> ^ or $ character.  cfengine is the first application I've ever
> encountered that does that differently and I think it's a basic enough
> difference that maybe some other name for the patterns (as implemented
> by cfengine) would be less confusing.
> Confusing me more is the fact that according to
>, ^[^#] does match any
> line not beginning with #.  Whoever wrote that page was expecting
> standard POSIX behaviour.

Work: +47 22453272            Email:  address@hidden
Fax : +47 22453205            WWW  :

reply via email to

[Prev in Thread] Current Thread [Next in Thread]