[augeas-devel] Help regarding union.put overlap with INI-like format

Pino Toscano ptoscano at redhat.com
Wed Nov 28 11:02:25 UTC 2018


On Wednesday, 28 November 2018 10:06:18 CET Raphaël Pinson wrote:
> Your example does not correspond to
> 
>     (entry | record)*
> 
> Rather, it corresponds to
> 
>     entry* . record*
> 
> since entries inside records are not independent.
> 
> Also, you're missing comment support:
> 
>     (comment | entry)* . record*

Hmm most probably I did not explain correctly: [end] is not the start
of a new group called "end", but it's the closing tag for a group.
So back to my example:

| foo=var
| [group1]
| var=value
| [end]
| foo2=var2
| [group2]
| var=value
| [end]

there are:
- a un-grouped entry "foo" with value "var"
- a group "group1" with a "var" entry
- a un-grouped entry "foo2" with value "var2"
- a group "group2" with a "var" entry

Groups (with entries in it) and un-grouped entries mix freely in the
configuration file.

-- 
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20181128/8c6a6436/attachment.sig>


More information about the augeas-devel mailing list