--- grass-6.2.3-orig/lib/init/init.sh 2007-07-12 16:28:14 +0400 +++ grass-6.2.3/lib/init/init.sh 2008-01-11 03:37:06 +0300 @@ -306,7 +306,11 @@ read ans #for convenience, define pwd as GISDBASE: - echo "GISDBASE: `pwd`" > "$GISRC" + if [ -z "GISDBASE" ]; then + echo "GISDBASE: `pwd`" > "$GISRC" + else + echo "GISDBASE: $GISDBASE" > "$GISRC" + fi echo 'LOCATION_NAME: ' >> "$GISRC" echo 'MAPSET: ' >> "$GISRC"