[GRASS-user] g.gisenv

Hi,

I am not able to set variables using g.gisenv, I wonder why - a simple example

g.gisenv set=GRASS_WIDTH=800
g.gisenv get=GRASS_WIDTH
800

-> GRASS monitor has a default size.

The same result with DEBUG/GRASS_DEBUG/GRASS_VERBOSE, etc. Do you have
any idea...?

Thanks a lot, Martin

PS: fresh CVS compiled
--
Martin Landa <landa.martin@gmail.com> * http://gama.fsv.cvut.cz/~landa *

Martin Landa wrote:

I am not able to set variables using g.gisenv, I wonder why - a simple
example

g.gisenv set=GRASS_WIDTH=800
g.gisenv get=GRASS_WIDTH
800

-> GRASS monitor has a default size.

The same result with DEBUG/GRASS_DEBUG/GRASS_VERBOSE, etc. Do you have
any idea...?

These are shell environment variables, not GRASS gisenv variables.

add these to ~/.grass.bashrc :

export GRASS_WIDTH=800
export GRASS_HEIGHT=600

see:
  http://grass.ibiblio.org/grass63/manuals/html63_user/variables.html

Hamish

Hi,

2006/10/9, Hamish <hamish_nospam@yahoo.com>:

[snip]

These are shell environment variables, not GRASS gisenv variables.

add these to ~/.grass.bashrc :

export GRASS_WIDTH=800
export GRASS_HEIGHT=600

see:
  http://grass.ibiblio.org/grass63/manuals/html63_user/variables.html

Sorry, a wrong example, trying again -- GRASS *gisenv* variable DEBUG:

g.gisenv set=DEBUG=5
g.gisenv get=DEBUG
5

g.remove x
Remove <x>
WARNING: <x> nothing removed

.... no debug message, should be(?)

grep G_debug general/manage/lib/do_remove.c
G_debug (1, "%s: %s", list[n].desc[i],_("missing"));
G_debug (1, "%s: %s", list[n].desc[i],_("removed"));
G_debug (1, "%s: %s", colr2, _("missing"));
G_debug (1, "%s: %s", colr2, _("removed"));

Best, Martin

--
Martin Landa <landa.martin@gmail.com> * http://gama.fsv.cvut.cz/~landa *