help-cfengine
[Top][All Lists]
Advanced

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

Re: editfiles not working!?


From: Bruce Richardson
Subject: Re: editfiles not working!?
Date: Mon, 3 Jun 2002 16:50:06 +0100
User-agent: Mutt/1.3.28i

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
http://www.iu.hio.no/cfengine/confdir/regex.html, ^[^#] does match any
line not beginning with #.  Whoever wrote that page was expecting
standard POSIX behaviour.

-- 
Bruce

You can fool some of the people all the time, you can fool all of
the people some of the time but you can never fool your mother.

Attachment: pgpmoeWTCeQ5M.pgp
Description: PGP signature


reply via email to

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