Martin, I think the following change has to be reverted because it breaks aliases and custom prompts defined in ~/.grass7/bashrc. Currently, only "NAME=VALUE" lines are parsed from this file in load_env().
Regards, Huidae On Thu, May 21, 2015 at 5:45 PM, <[email protected]> wrote: > Author: martinl > Date: 2015-05-21 14:45:19 -0700 (Thu, 21 May 2015) > New Revision: 65307 > > Modified: > grass/trunk/lib/init/grass.py > Log: > grass.py: don't overwrite environmental variables in bash_startup() > > > Modified: grass/trunk/lib/init/grass.py > =================================================================== > --- grass/trunk/lib/init/grass.py 2015-05-21 21:01:15 UTC (rev 65306) > +++ grass/trunk/lib/init/grass.py 2015-05-21 21:45:19 UTC (rev 65307) > ... > @@ -1443,9 +1449,7 @@ > path = os.path.join(userhome, ".grass.bashrc") # left for backward > compatibility > if os.access(path, os.R_OK): > f.write(readfile(path) + '\n') > - if os.access(grass_env_file, os.R_OK): > - f.write(readfile(grass_env_file) + '\n') > - > + > f.write("export PATH=\"%s\"\n" % os.getenv('PATH')) > f.write("export HOME=\"%s\"\n" % userhome) # restore user home path > > <http://lists.osgeo.org/mailman/listinfo/grass-commit> >
_______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
