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

Augeas trac at fedorahosted.org
Tue Aug 12 18:34: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 
 Keywords:          |  
--------------------+-------------------------------------------------------
 This test fails, though it should succeed:

 {{{
 module Pass_put_maybe =

   let indent = del /[ \t]+/ ""

   let lns = [ indent? . label "entry" . store /[a-z]+/ . del "\n" "\n" ]

   let s = "  entry\n"

   test lns put s after
       set "entry" "entry"
   = s
 }}}

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




More information about the augeas-devel mailing list