[GRASS-dev] [GRASS-SVN] r65307 - grass/trunk/lib/init

Huidae Cho grass4u at gmail.com
Wed Jul 8 09:31:25 PDT 2015


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, <svn_grass at osgeo.org> 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>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20150708/f364ede1/attachment.html>


More information about the grass-dev mailing list