<div dir="ltr">On Thu, Jul 24, 2008 at 5:47 PM, David Lutterkort <<a href="mailto:dlutter@redhat.com">dlutter@redhat.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Thu, 2008-07-24 at 09:38 +0200, Raphaël Pinson wrote:<br>
> * Using another name for the node:<br>
><br>
> e.g.<br>
>    /files/path/to/my/file/c_field = "value"<br>
><br>
>   This also fixes the flag issue, since the field name is different.<br>
<br>
</div>Yes, that would probably be the most usable way to do this (maybe prefix<br>
the field name with a '.' or similar)</blockquote><div><br>Great! I think it might really be the best way.<br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<div class="Ih2E3d"><br>
>  To comment/uncomment here would mean to rename the field, if<br>
> possible. Something that would look like :<br>
><br>
>  mv /files/path/to/my/file/c_field /files/path/to/my/file/field<br>
><br>
>   I don't know how hard it would be to get to such a possibility in<br>
> Augeas.<br>
<br>
</div>It wouldn't be hard at all; the main issue would be to make sure that<br>
you can specify very precisely where the target is in relation to its<br>
siblings.<br>
<br>
I am thinking that the best way to achieve that is by allowing the<br>
target of the move to exist; in that case, the target will be deleted<br>
from the tree and the source be moved into its place.<br>
<br>
If the target does not exist yet, it is created by appending to the list<br>
of its siblings.<br>
<br>
How does that sound ?<br>
<font color="#888888"></font></blockquote><div><br>Well as I am thinking of how "mv" would work, it would actually make sense to have it be a combination of a cp and a rm, since it could be useful to have a "cp" command to duplicate a node. And since "rm" already exists, I guess it wouldn't be hard to code rm as a sequence of "cp" and "rm".<br>
 <br>What do you think?<br><br><br>Raphael<br></div></div></div>