[augeas-devel] Re: "ins" statement in augtool can corrupt the edited file

Marc Fournier marc.fournier at camptocamp.com
Mon Sep 29 10:24:17 UTC 2008


On Mon, 29 Sep 2008 11:56:17 +0200
"Raphaël Pinson" <raphink at gmail.com>
wrote:

> On Mon, Sep 29, 2008 at 11:51 AM, Marc Fournier <
> marc.fournier at camptocamp.com> wrote:
> 
> > Hello,
> >
> > I noticed that when using the following statement in augtool, part
> > of the edited file gets lost (at least when using the inifile lens):
> >
> > "ins item=value <WHERE> <PATH>"
> >
> 
> 
> I think the problem is that "=" should not be accepted in a node
> name, just like "/" is already excluded. This is a problem with
> Augeas rather than augtool imo.

In this case, augeas should probably ask the lens-file which separators
are in use in the current file (the "del" parameter I think). I can
imagine some files could use ":" or "->" or even a blank space as a
separator, while others would allow these same characters in key names.

Marc





More information about the augeas-devel mailing list