#4: Put of lenses with '?' is incorrect
---------------------+------------------------------------------------------
  Reporter:  lutter  |       Owner:  lutter
      Type:  defect  |      Status:  new   
  Priority:  major   |   Milestone:  next  
 Component:  Augeas  |     Version:  devel 
Resolution:          |    Keywords:        
---------------------+------------------------------------------------------
Comment (by lutter):

 A similar issue arises with


 {{{
 module Pass_store_maybe =

   let lns = [ key /[a-z]+/ . del / +/ " " . (store /[0-9]+/) ? ]

   test lns put "key " after rm "foo" = "key "

 }}}

 which produces the error


 {{{
 pass_store_maybe.aug:5.7-.36:exception: Can not store a nonexistent (NULL)
 value
     Error encountered at path /key
 }}}

-- 
Ticket URL: <https://fedorahosted.org/augeas/ticket/4#comment:1>
Augeas <http://augeas.net/>
a configuration API

_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel

Reply via email to