[GRASS-dev] [bug #4368] (grass) g.parser: pass through --o
Cedric Shock
cedricgrass at shockfamily.net
Tue May 9 22:33:37 EDT 2006
Glynn,
> Cedric Shock via RT wrote:
> > parser.c now sets the OVERWRITE environment variable, but doesn't export
> > it.
In bug 4331 you wrote:
> I would have thought that it would be sufficient for G_parser() to set
> OVERWRITE itself if --o was used. That would then be inherited by the
> script and by any modules which it calls.
Would this be G__setenv("OVERWRITE", "1") ? Or will something like:
r.patch --o ...
r.in.gdal output=map_that_already_exists ...
overwrite the map_that_already_exists because the "env" changed?
>
> 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.
>
Is the above how to modify this like you suggested?
--Cedric
More information about the grass-dev
mailing list