[GRASS-dev] [$HOME on csh] GEM Wizard question
hamish_nospam at yahoo.com
Wed May 23 21:09:08 EDT 2007
William Kyngesburye wrote:
> Is that from within GRASS, or other shell use? Which platform? If
> GRASS needs HOME as Hamish says, then it won't run without it (or not
> run right), so G_home() will always work. Unless maybe the GRASS
> libraries are used outside of GRASS, like in Qgis or GDAL.
maybe it has something to do with resetting $HOME so .bash_history is
placed in the $MAPSET dir?
e.g. I see that csh in lib/init/init.sh does:
USERHOME="$HOME" # save original home
the bash version has "# restore user home path", but I don't see that
in the csh section. (perhaps I'm looking past it)
Anyone on Mac who created their user acc't prior to OSX 10.2 will have
csh as their default shell (even if you've upgraded the rest of the
So maybe the broken $HOME happens when the shell is csh?
More information about the grass-dev