[augeas-devel] Re: [Augeas] #4: Put of lenses with '?' is incorrect

Augeas trac at fedorahosted.org
Wed Aug 27 22:06:19 UTC 2008


#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




More information about the augeas-devel mailing list