[augeas-devel] Re: [Sudoers] Sudoers lens: first demo from scratch

David Lutterkort dlutter at redhat.com
Wed Aug 13 17:30:13 UTC 2008


On Tue, 2008-08-12 at 12:35 +0200, Raphaël Pinson wrote:
> Note: env_keep+='APT_CONFIG DEBIAN_FRONTEND SHELL' is a syntax error
> (visudo doesn't like it) but I couldn't find how to set the " with
> augtool...

You can do
        augtool> set /foo '"yo mama"'
        augtool> get /foo
        /foo = "yo mama"
        
i.e. if the value for set starts with ' it goes all the way to the next
', and the same for " .. if you need strings with both ' and " in them
you're in trouble though.

David






More information about the augeas-devel mailing list