[augeas-devel] Is augeas weak for sysconfig files, or missing something?

Michal Filka michal.filka at suse.cz
Mon Apr 2 07:33:20 UTC 2012


>
> There was a discussion last year with some ideas about how to build on
> the square lens that Francis introduced, to create a new primitive
> similar to your suggestion:
> https://www.redhat.com/archives/augeas-devel/2011-November/msg00016.html
... square lens doesn't help in sysconfig case, because it has "key"  
inside.
So it leads to expression with two keys which is incorrect. I think that  
stronger
operation over lenses as terminals is required. In this particular case  
the reference
to particular value defined earlier in the expression should be enough  
(POSIX
groups and backreferences).
>
> I don't know the history of Sysconfig, but it looks like it tries to
> solve the problem in a different way to Shellvars.  Shellvars always
> passes quotes back through to the user which makes their life harder,
> but means it can parse more.  Sysconfig seems to try and strip them out.
... yes. This is exact description. I think that removing quotes is more  
correct approach.
Because 'value' is equal to "value" (and sometimes even to value) from  
user's point of view.
>
Michal Filka




More information about the augeas-devel mailing list