Re: [GRASS-dev] [GRASS GIS] #3997: variables.html: mention not to expect --exec g.gisenv to work

2019-12-03 Thread GRASS GIS
#3997: variables.html: mention not to expect --exec g.gisenv to work
--+-
  Reporter:  jidanni  |  Owner:  grass-dev@…
  Type:  enhancement  | Status:  closed
  Priority:  trivial  |  Milestone:
 Component:  Docs |Version:  git-releasebranch78
Resolution:  worksforme   |   Keywords:
   CPU:  Unspecified  |   Platform:  Unspecified
--+-

Comment (by jidanni):

 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?"

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #3997: variables.html: mention not to expect --exec g.gisenv to work

2019-12-01 Thread GRASS GIS
#3997: variables.html: mention not to expect --exec g.gisenv to work
--+-
  Reporter:  jidanni  |  Owner:  grass-dev@…
  Type:  enhancement  | Status:  closed
  Priority:  trivial  |  Milestone:
 Component:  Docs |Version:  git-releasebranch78
Resolution:  worksforme   |   Keywords:
   CPU:  Unspecified  |   Platform:  Unspecified
--+-
Changes (by mmetz):

 * status:  new => closed
 * resolution:   => worksforme


Comment:

 Replying to [ticket:3997 jidanni]:
 > variables.html says
 > {{{
 > Use g.gisenv within GRASS. This permanently predefines GRASS variables
 > in the $HOME/.grass7/rc file.
 > }}}

 ... after the current GRASS session is closed. Note that within a GRASS
 session, a temporary copy of this rc file is used.

 > 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
 > }}}
 Works for me: after closing the GRASS session, or after `grass --exec` the
 $HOME/.grass7/rc file is updated accordingly.

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev