[GRASS5] [bug #2963] (grass) GRASS command history equivalent to .Rhistory - obsolete

Glynn Clements glynn at gclements.plus.com
Mon Feb 7 15:26:28 EST 2005


Martin Wegmann wrote:

> > > Subject: GRASS command history  equivalent to .Rhistory
> > >
> > > Platform: GNU/Linux/i386
> > > grass obtained from: Trento Italy site
> > > GRASS Version: 6.0.0beta1 (*.deb)
> > >
> > > I am not sure if it is easily implemented but a history for GRASS
> > > commands (separated by mapsets) like the history file in R would be very
> > > handy.
> >
> > I have
> >
> >
> > mlennert at moritz:~/GRASSDATA/BELGIQUE/mlennert$ ls -a
> > .   .bash_history  cats  cellhd     colr  hist   .tmp  vector  windows
> > ..  .bashrc        cell  cell_misc  dbf   paint  VAR   WIND
> >
> > What else than the .bash_history file would you want (or is this only
> > available in bash ?)  ?
> 
> uphs, sorry, wish can be deleted, I thought that also the regular unix 
> commands I entered before I started GRASS were listed but I forgot that I can 
> use Unix commands as well inside GRASS session and that the Unix commands I 
> saw were actually entered in the GRASS session not in the previous shell. 

This is because etc/Init.sh temporarily sets HOME to the mapset
directory while it starts the shell, so $HOME/.bash_history refers to
a mapset-specific history file.

You can set HISTFILE prior to starting GRASS if you want to override
it (e.g. if you want a single history file for all GRASS sessions).

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list