#4: Put of lenses with '?' is incorrect
---------------------+------------------------------------------------------
Reporter: lutter | Owner: lutter
Type: defect | Status: closed
Priority: major | Milestone: next
Component: Augeas | Version: devel
Resolution: fixed | Keywords:
---------------------+------------------------------------------------------
Changes (by lutter):
* status: new => closed
* resolution: => fixed
Comment:
This has been fixed with cset 635:7a4c42128118
The Pass_put_maybe test above is rejected as a type error, since the put
direction of '?' has no way to know whether to apply the enclosed lens or
not.
The typechecker now requires that in the construct 'l?', the lens l either
produces nodes in the tree or that l contains a 'store' unconditionally.
The means that constructs like '(del /[ \t]*/ "" . store /[a-z]+/)?' are
legal.
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/4#comment:3>
Augeas <http://augeas.net/>
a configuration API
_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel