[GRASS5] Environment variable listings...
Glynn Clements
glynn.clements at virgin.net
Fri Aug 10 16:41:23 EDT 2001
Eric G. Miller wrote:
> > > Do you think people would find it useful if g.gisenv could list all of
> > > the known environment variables with a bit of information about them?
> > >
> > > I've hacked my copy of g.gisenv to do this via an "-l" flag. Output is
> > > like:
> >
> > [snip]
> >
> > > Seems it's never easy enough to figure out what environment variables
> > > are available for controlling behaviors... Developer's can easily add
> > > to the struct array if there's a module that recognizes a certain
> > > variable and it's not yet "registered".
> > >
> > > Opinions?
> >
> > Adding this to g.gisenv might further confuse users regarding the
> > distinction between GRASS variables ($GISRC) and environment variables
> > (getenv()). It might be better to have a separate program.
>
> These are GRASS variables (GISRC). That's what g.gisenv manipulates.
> Normal environment variables are available with "env" command. The
> proposal would only have those GRASS variables that are settable (and
> meaningful) in GISRC (~/.grassrc5). "g.gisenv" manipulates that file
> directly with the "set=" argument.
More information about the grass-dev
mailing list