[GRASS-dev] new v.support metadata module

Hamish hamish_nospam at yahoo.com
Thu Mar 15 21:16:00 EDT 2007


Markus Neteler wrote:
> Question:
> What's the best trick to construct the cmd line automatically in
> g.parser supported scripts? Stuff like
>  CMDLINE="$0 $@"
> fails since g.parser modifies the shell parameters. The solution
> should then go into all scripts/v*/v* where appropriate.


You either need to have
 CMDLINE="$0 $@"
in every script before the g.parser call, or modify g.parser to putenv
that before it overwrites it.


see recent discussion WRT the d.path --script wrapper.
http://thread.gmane.org/gmane.comp.gis.grass.devel/18802/focus=18863


Hamish




More information about the grass-dev mailing list