#238: If --root is set when using augtool, files are not saved.
---------------------+------------------------------------------------------
 Reporter:  fabiand  |       Owner:  lutter
     Type:  defect   |      Status:  new   
 Priority:  major    |   Milestone:  next  
Component:  Augeas   |     Version:  0.8.0 
 Keywords:  augtool  |  
---------------------+------------------------------------------------------
 Using the following xml file, augtool doesn not save change if the root is
 set to ".".


 {{{
 cat > abc.xml <<EOF
 <root>
 <child dominate="true">Hi there.</child>
 </root>
 EOF
 }}}


 Run:


 {{{
 augtool -LA -e -r . <<EOF
 set /augeas/load/xml/lens "Xml.lns"
 set /augeas/load/xml/incl "abc.xml"
 load
 set /files/abc.xml/root/child/#attribute/foo "Hello World."
 print /files/abc.xml
 save
 EOF

 cat abc.xml
 }}}

 The above script works, if all the file paths are absolute.

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

_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel

Reply via email to