[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[augeas-devel] [Augeas] #64: [group.aug] fails when file has no trailing eol



#64: [group.aug] fails when file has no trailing eol
--------------------+-------------------------------------------------------
 Reporter:  raboof  |       Owner:  lutter
     Type:  defect  |      Status:  new   
 Priority:  major   |   Milestone:  next  
Component:  Augeas  |     Version:  0.5.0 
 Keywords:          |  
--------------------+-------------------------------------------------------
 It seems /etc/group is not required to end with an eol, however in that
 case augeas fails to parse the file.

 This can be easily tested by removing the trailing eol from the testcase.

 In a previous version (0.2 i think) of augeaus I solved a similar problem
 removing the eol from the rule to match an entry and adding and a
 construction like:

   let lns = entry . ( newline . entry )* . newline?

 but this now yields a 'optional expression matches the empty tree but does
 not consume a value' exception that I find a bit puzzling.

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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]