Still nothing, look:
[EMAIL PROTECTED]:~$ eval 'g.gisenv'
GRASS_GUI=tcltk
GISDBASE=/home/alobo/grass/
LOCATION_NAME=FBBVA
MAPSET=BENI1
[EMAIL PROTECTED]:~$ echo $MAPSET
[EMAIL PROTECTED]:~$
Agus
Martin Landa wrote:
Ciao,
2008/5/6 Agustin Lobo <[EMAIL PROTECTED]>:
I'm using grass 6.2.3 on ubuntu hardy. I can't get the value
of the grass environmental varaibles. If I do g.gisenv. I get:
[EMAIL PROTECTED]:~$ g.gisenv
GRASS_GUI=tcltk
GISDBASE=/home/alobo/grass/
LOCATION_NAME=FBBVA
MAPSET=BENI1
but if I do echo $MAPSET I get a white line.
How can I get the values of the environmental variables? I'll
need them for scripts.
use 'eval'
$ eval `g.gisenv`
$ echo $MAPSET
user1
see e.g.
http://trac.osgeo.org/grass/browser/grass/branches/develbranch_6/scripts/db.dropcol/db.dropcol#L89
Martin
--
Dr. Agustin Lobo
Institut de Ciencies de la Terra "Jaume Almera" (CSIC)
LLuis Sole Sabaris s/n
08028 Barcelona
Spain
Tel. 34 934095410
Fax. 34 934110012
email: [EMAIL PROTECTED]
http://www.ija.csic.es/gt/obster
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user