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

Re: [augeas-devel] sudoers lens not working



On Fri, 2009-03-20 at 19:46 +0100, Raphaël Pinson wrote:
> Ah, that's one of the syntaxes that made me not want to parse the
> contents of Defaults further down... I had no clear idea of the way to
> properly represent the "+=" in the tree.

The way I did that in the xinetd lens is by creating subnodes to
indicate what kind of operator was there, e.g. so that the following
gets produced:

  'var = value' => { "var" = "value" }
  'var += value' => { "var" = "value" { "append" } }
  'var -= value' => { "var" = "value" { "remove" } }

David







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