[augeas-devel] [PATCH 4 of 7] Rewrite php.aug on new inifile.aug

Raphaël Pinson raphink at gmail.com
Fri Aug 15 11:02:25 UTC 2008


On Fri, Aug 15, 2008 at 2:40 AM, David Lutterkort <dlutter at redhat.com>wrote:

> On Thu, 2008-08-14 at 17:52 +0200, Raphael Pinson wrote:
> > # HG changeset patch
> > # User Raphael Pinson <raphink at gmail.com>
> > # Date 1218728952 -7200
> > # Node ID b3d373af10fdb0150400ec084c4d51b60031ef65
> > # Parent  eeabbccba76be48bd0b338d625bf434e795ae77c
> > Rewrite php.aug on new inifile.aug
>
> Looks good, except for
>
> > +let entry_re = ( /[A-Za-z][A-Za-z0-9\._-]+/ - /#comment/ - /section/ )
>
> This allows literal '\' in the names of entries. In POSIX extended
> regexps, '\' does not escape inside a '[..]'; you do not need to escape
> '.' in a character class - '[.]' matches only a literal dot.
>
> You can verify that with "echo a..b | sed -r -e 's/[.]/X/g'"
>

Not sure I understand that part. I'll have to try it. Well - /#comment/ is
also not necessary obviously.



> >  let filter = (incl "/etc/php*/*/php.ini")
> >               . Util.stdexcl
>
> Where are the php.ini files on Debian/Ubuntu ? Is there one directory
> for each module ?
>

They are all over the place...
/etc/php[45]/cli/php.ini
/etc/php[45]/apache2?/php.ini
/etc/php[45]/cgi/php.ini



Raphael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20080815/7070affb/attachment.htm>


More information about the augeas-devel mailing list