[GRASS-dev] [bug #4368] (grass) g.parser: pass through --o

Glynn Clements glynn at gclements.plus.com
Tue May 9 21:36:23 EDT 2006


Cedric Shock via RT wrote:

> parser.c now sets the OVERWRITE environment variable, but doesn't export it.

It doesn't make sense to talk about "exporting" an environment
variable.

More accurately, parser.c now sets the OVERWRITE environment variable
if either the OVERWRITE GRASS variable is set or if the --o switch is
used. It doesn't modify the OVERWRITE GRASS variable.

> Scripts run by g.parser now have it set so that modules they run will be run
> as if --o was included.

Only if the scripts themselves check $OVERWRITE and pass --o to any
commands which they run. G_parser() itself doesn't pay any attention
to the OVERWRITE environment variable.

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




More information about the grass-dev mailing list