Hello James,
Thank you for reporting this issue. I just fixed it in commit https://github.com/hercules-team/augeas/commit/d26208334bf88b881dbd0796a09acb23fce8d302 As a note, backslashes are not required in bash, you can just use newlines without them (and Augeas 1.0.0 already supports that). Raphaël On Tue, Dec 17, 2013 at 11:45 AM, James Eckersall < [email protected]> wrote: > Hi, > > > > I believe I may have found a bug in the shellvars lens for Augeas. Either > that, or I'm not using it correctly. > > This relates to /etc/sysconfig/varnish, but I've been able to replicate it > with a simple test file. > > Augeas uses the shellvars lens on /etc/sysconfig/varnish, so I presume > this is the correct lens to be using. > > > > This is on a CentOS 6 box, running augeas-1.0.0-5.el6.x86_64 > > > > Given the following file: > > > > $ cat /tmp/testaug.file > > BLAH=" \ > > test \ > > test2" > > $ > > > > Running augtool as follows, I get the following error: > > > > $ echo "rm /augeas/load/* > > > set /augeas/load/Shellvars/lens Shellvars.lns > > > set /augeas/load/Shellvars/incl /tmp/testaug.file > > > load > > > print /augeas//error > > > " | augtool --noload > > rm : /augeas/load/* 1368 > > /augeas/files/tmp/testaug.file/error = "parse_failed" > > /augeas/files/tmp/testaug.file/error/pos = "4" > > /augeas/files/tmp/testaug.file/error/line = "1" > > /augeas/files/tmp/testaug.file/error/char = "4" > > /augeas/files/tmp/testaug.file/error/lens = > "/usr/share/augeas/lenses/dist/shellvars.aug:163.12-.99:" > > /augeas/files/tmp/testaug.file/error/message = "Syntax error" > > > > I initially thought it was the backslash-newline, but after further > testing, it seems to be the combination of double-quotes and the > backslash-newline. > > If I change the double quotes to single quotes, it works fine. If I have > the following on a single line, that works fine: > > BLAH="test test2" > > > > > > Any help will be appreciated. > > > > Regards > > > > James > > _______________________________________________ > augeas-devel mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/augeas-devel > -- Raphaël Pinson Infrastructure Developer & Trainer +33 479 26 57 93 +33 781 90 00 79 Camptocamp France Savoie Technolac BP 352 48, avenue du Lac du Bourget 73372 Le Bourget du Lac, Cedex www.camptocamp.com
_______________________________________________ augeas-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/augeas-devel
