[augeas-devel] Best way to make a shellvars-alike lens?

David Lutterkort lutter at redhat.com
Tue May 18 19:55:24 UTC 2010


On Tue, 2010-05-18 at 10:42 +0200, Tim Stoop wrote:
> After a few weeks doing other stuff, I'm back at making lenses.
> Currently I'm trying to get stuff done for cron-apt, which itself is
> just a shell script and therefore uses shell variables in a config
> file. What would be the best way to create a lens for this? Copy the
> shellvars.aug and make adaptations (if any)? Or is there a better way?

The best way would be to add to the long list of files in shellvars.aug,
i.e. add a '. incl "/some/path" to filter_misc.

David






More information about the augeas-devel mailing list