[GRASS5] cd $LOCATION revisited

Markus Neteler neteler at itc.it
Fri Jan 16 11:39:01 EST 2004


There is probably some confusion concerning $LOCATION variable:

[...]
Writing Helena (GRASS 5.3-CVS):
> > > if I work in GRASS on command line and I type
> > >
> > > GRASS:~ > cd $GISDBASE/$LOCATION_NAME/$MAPSET
> > > GRASS:~/grassdata/wake-spft/helena > pwd
> > > /home/helena/grassdata/wake-spft/helena
> > > GRASS:~/grassdata/wake-spft/helena > ls
> > > cats  cell  cellhd  cell_misc  colr  dig  dig_att  dig_cats  dig_plus
> > > fcell  g3dcell  hist  WIND

Answer Markus (GRASS 5.3-CVS):
> > On a standard version it doesn't work:
> > 
> > GRASS:~ > cd $GISDBASE/$LOCATION_NAME/$MAPSET
> > GRASS:// >

... confusing!

Clarification (desired behaviour?):
> I don't have any trick or modification - Jaro has explained it to me -
> when you start GRASS with tcltk interface the variables get set up and
> it works as written above. 
> If you start with -text then I get what you have described 
> as standard version. So far on the machines where I have tried it
> it works like this without any tricks 
> 
> Helena

For me it's strange if, depending how GRASS was started, $LOCATION
is set or not. Guess that this should be fixed.

Markus




More information about the grass-dev mailing list