On Thu, 2009-10-08 at 09:00 +0200, Mathieu Bornoz wrote:
> Here's an example with the lens xinetd.
> 
> If I add some content between double quotes in test/test_xinetd.aug :
> 
> mbor...@kazbek:~/augeas/lenses$ git diff tests/test_xinetd.aug
> diff --git a/lenses/tests/test_xinetd.aug b/lenses/tests/test_xinetd.aug
> index c49496b..ae69d58 100644
> --- a/lenses/tests/test_xinetd.aug
> +++ b/lenses/tests/test_xinetd.aug
> @@ -5,7 +5,7 @@ let eol_ws = "defaults \t \n{\n  enabled = cvs echo
> \n}\n\n"
>  let cvs = "# default: off
>  # description: The CVS service can record the history of your source
>  #              files. CVS stores all the versions of a file in a single
> -#              file in a clever way that only stores the differences
> +#              file in a "clever way" that only stores the differences
>  #              between versions.
>  service cvspserver
>  {
> 
> and I run augparse :
> 
> mbor...@kazbek:~/augeas/lenses$ augparse -I. tests/test_xinetd.aug
> tests/test_xinetd.aug:8.0-.6:Undefined variable clever
> tests/test_xinetd.aug:8.7-.10:Undefined variable way
> tests/test_xinetd.aug:42.20-.23:Undefined variable cvs
> tests/test_xinetd.aug: error: Loading failed

Aah .. that's just a problem with matching the quotes in the
interpreter. You need to escape them with a backslash, i.e.

        let s = "A string with \"double quotes\" in it"
        
David


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

Reply via email to