我想编辑文件" myfileDB.properties"使用augeas。所以使用了Properties.lns。 但它犯了错误" parse_failed"而且有些时间" parse_skel_failed"。解释此错误的根本原因并解决此问题。
augtool> print /augeas/files/root/yog/myfileDB.properties/error/
/augeas/files/root/yog/myfileDB.properties/error = "parse_failed"
/augeas/files/root/yog/myfileDB.properties/error/pos = "17835"
/augeas/files/root/yog/myfileDB.properties/error/line = "318"
/augeas/files/root/yog/myfileDB.properties/error/char = "0"
/augeas/files/root/yog/myfileDB.properties/error/lens = "/usr/share /augeas/lenses/dist/properties.aug:50.25-.100:"
/augeas/files/root/yog/myfileDB.properties/error/message = "Iterated lens matched less than it should"
/augeas/files/root/yog/myfileDB.properties/error = "parse_skel_failed"
/augeas/files/root/yog/myfileDB.properties/error/pos = "4844943"
/augeas/files/root/yog/myfileDB.properties/error/line = "53707"
/augeas/files/root/yog/myfileDB.properties/error/char = "0"
/augeas/files/root/yog/myfileDB.properties/error/lens = "/usr/share/augeas/lenses/dist/simplevars.aug:34.10-.46:"
/augeas/files/root/yog/myfileDB.properties/error/message = "Iterated lens matched less than it should"