#3997 closed enhancement (worksforme)
variables.html: mention not to expect --exec g.gisenv to work
Reported by: | jidanni | Owned by: | |
---|---|---|---|
Priority: | trivial | Milestone: | |
Component: | Docs | Version: | git-releasebranch78 |
Keywords: | Cc: | ||
CPU: | Unspecified | Platform: | Unspecified |
Description
variables.html says
Use g.gisenv within GRASS. This permanently predefines GRASS variables in the $HOME/.grass7/rc file.
Yes, "within". However it should mention that that won't work with --exec.
Mention with --exec a temporary $GISRC is used:
$ grass /.../TC46 --exec env GISRC=/tmp/grass7-jidanni-12382/gisrc
Change History (4)
comment:1 by , 5 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:2 by , 5 years ago
OK I see somebody has now noted this in https://github.com/OSGeo/grass/blob/master/lib/init/variables.html
I now made https://github.com/OSGeo/grass/pull/232 to mention it also in g.gisenv.
However in both files, we are now mentioning "after the current GRASS session is closed", but users also wonder "what about the current session?"
comment:3 by , 3 years ago
PR https://github.com/OSGeo/grass/pull/232 accepted and merged in https://github.com/OSGeo/grass/commit/3bd5de2084e7f59be12a986e0a3abc193b62c943
Thanks.
comment:4 by , 3 years ago
PR https://github.com/OSGeo/grass/pull/232 accepted and merged in https://github.com/OSGeo/grass/commit/3bd5de2084e7f59be12a986e0a3abc193b62c943
Thanks.
Replying to jidanni:
... after the current GRASS session is closed. Note that within a GRASS session, a temporary copy of this rc file is used.
Works for me: after closing the GRASS session, or after
grass --exec
the $HOME/.grass7/rc file is updated accordingly.