[GRASS-dev] [$HOME on csh] GEM Wizard question

Hamish 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:

csh|tcsh)
    USERHOME="$HOME"      # save original home
    HOME="$LOCATION"
    export HOME
    cshrc="$HOME/.cshrc"
...


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
system).

So maybe the broken $HOME happens when the shell is csh?


???

Hamish




More information about the grass-dev mailing list