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
_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel