[GRASS-dev] g.list -a

Glynn Clements glynn at gclements.plus.com
Tue Dec 26 19:27:41 EST 2006


Martin Landa wrote:

> > > I am trying to implement the wish [1]. I found a strange construction
> > > in g.list module. The -f flag (full listing) calls the external
> > > program $GISBASE/etc/lister/[cell|vector]. These little programs are
> > > called only in g.list -f (I think).
> > >
> > > I rewrote g.list without calling any external program -- i.e. I moved
> > > functions from lister directory to lib/lister.c. If there are no
> > > serious objections I will commit it to CVS.
> >
> > Don't remove the existing functionality; add a new switch for using
> > your built-in lister.
> 
> this patch does not remove any functionality (AFAIK). The only change
> is: the functionality of lister (programs) is moved to lib/lister.c. I
> don't see any reason why to have this functionality (the -f flag)
> outside of the g.list (/etc/lister/[cell|vector]). Maybe there is a
> particular reason for this construction, please let me know. Thanks!

The user can install lister programs for other types and/or replace
existing ones.

The point of -f isn't so much to provide specific additional
functionality, but to allow the handling to be deferred to an external
program.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list