[augeas-devel] Help for INI file variation

Zero Uno zerozerounouno at gmail.com
Sat Feb 22 00:35:18 UTC 2014


Hi,
I'm trying to create a slightly modified lens for INI-like files
having the following features:

1. comments only start with semicolons ";"
2. parameter keywords con contain "@"
3. parameter values can contain "#"
4. ideally, parameter values should be able to contain double quotes,
but maybe this is currently not possible

I duplicated puppet.aug and started from there, but I'm still missing
something: requirement n. 2 seems to be satisfied,  but I cannot
satisfy n. 3, augeas returns a parse error when it encounters a
parameter value containing a "#".

I don't have my edited file at hand now, but anyway I redefined
comment_re and to_comment_re by removing "#" from the regex.
I've been looking at the file and AFAICT it's ok, I cannot understand
why augeas still cannot parse the configuration files.

Any suggestions?
Thanks.
Marco




More information about the augeas-devel mailing list