There is a minor misconception about the MAPSET variable. It is NOT read from the Unix environment, but from the $GISRC file. The same is true of the GISDBASE variable. Michael