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

this bug's URL: http://intevation.de/rt/webrt?serial_num=2963
-------------------------------------------------------------------------

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. Martin

-------------------------------------------- Managed by Request Tracker

On Fri, February 4, 2005 12:16, Request Tracker said:

this bug's URL: http://intevation.de/rt/webrt?serial_num=2963
-------------------------------------------------------------------------

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@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 ?) ?

Moritz

On Friday 04 February 2005 06:18, Moritz Lennert wrote:

On Fri, February 4, 2005 12:16, Request Tracker said:
> this bug's URL: http://intevation.de/rt/webrt?serial_num=2963
> -------------------------------------------------------------------------
>
> 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@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.

Martin

On Fri, 2005-02-04 at 12:18 +0100, Moritz Lennert wrote:

On Fri, February 4, 2005 12:16, Request Tracker said:
> this bug's URL: http://intevation.de/rt/webrt?serial_num=2963
> -------------------------------------------------------------------------
>
> 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@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 ?) ?

.bash_history and the 'history' command are features of the Bash shell.
Adding such a feature for better history support should not be terribly
difficult, but it is clearly not a priority.

--
Brad Douglas <rez@touchofmadness.com>

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@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@gclements.plus.com>