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

[augeas-devel] Re: [Augeas] #52: Double quotes issue in lists in sudoers



#52: Double quotes issue in lists in sudoers
----------------------+-----------------------------------------------------
  Reporter:  raphink  |       Owner:  lutter
      Type:  defect   |      Status:  new   
  Priority:  major    |   Milestone:  next  
 Component:  Augeas   |     Version:  0.4.1 
Resolution:           |    Keywords:        
----------------------+-----------------------------------------------------
Comment (by raphink):

 I think adding a non-disjoint union operator could fix this issue aswell
 (see ticket #8), as it would allow something like:[[BR]]

 {{{
 let parameter_lists_values = parameter_lists_value
                            || ( sep_dquote . parameter_lists_value
                                . ( sep_cont . parameter_lists_value )*
                                . sep_dquote )
 }}}


 Right now, this can't work with a single "|", because there is an
 ambiguity when putting back a list parameter from the tree to the concrete
 file, since Augeas doesn't know which lens to use. With a non-disjoint
 union, Augeas would try to use the first option if possible (i.e. if the
 value has no space and was not found surrounded by quotes when it was
 first parsed), and if it fails, it would add quotes around the value to
 store it.

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



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