[GRASS-SVN] r71746 - grass/trunk/general/g.mapset

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Nov 16 13:13:05 PST 2017


Author: neteler
Date: 2017-11-16 13:13:05 -0800 (Thu, 16 Nov 2017)
New Revision: 71746

Modified:
   grass/trunk/general/g.mapset/g.mapset.html
Log:
g.mapset manual: clarify where shell history is written

Modified: grass/trunk/general/g.mapset/g.mapset.html
===================================================================
--- grass/trunk/general/g.mapset/g.mapset.html	2017-11-16 21:05:21 UTC (rev 71745)
+++ grass/trunk/general/g.mapset/g.mapset.html	2017-11-16 21:13:05 UTC (rev 71746)
@@ -3,14 +3,18 @@
 <em>g.mapset</em> changes the current working MAPSET, LOCATION, or GISDBASE.
 This is a fairly radical maneuver to run mid-session, take care when running
 the GUI at the same time.
+<p>
+With <em>g.mapset</em>, the shell history (i.e. <tt>.bash_history</tt> file
+of the initial location will be used to record the command history.
 
-
 <h2>NOTES</h2>
 
-The shell continues to use the history for the old mapset. To change this 
-you can switch the history to the new settings by commands. For Bash:
+By default, the shell continues to use the history for the old mapset.
+To change this behaviour the history can be switched to record in the new
+mapset's history file as follows:
 
 <div class="code"><pre>
+# bash example
 history -w
 history -r /"$GISDBASE/$LOCATION/$MAPSET"/.bash_history
 HISTFILE=/"$GISDBASE/$LOCATION/$MAPSET"/.bash_history



More information about the grass-commit mailing list