[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #39734] interactive shell history should be sa
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #39734] interactive shell history should be saved on exec |
Date: |
Fri, 09 Aug 2013 03:19:34 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?39734>
Summary: interactive shell history should be saved on exec
Project: GNU Octave
Submitted by: mtmiller
Submitted on: Thu 08 Aug 2013 11:19:33 PM EDT
Category: Interpreter
Severity: 1 - Wish
Priority: 5 - Normal
Item Group: Feature Request
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
The exec function behaves like the shell command of the same name, or the
family of exec C functions. A new process takes the place of the running
Octave.
In bash, the exec command writes the shell history to HISTFILE, up to and
including the exec command itself. Octave, on the other hand, loses all of the
history from the current session. It would be nice if this were saved to
history_file exactly like a normal exit or a hangup.
Example bash:
bash-4.2$ ls
[...]
bash-4.2$ : now exec another bash
bash-4.2$ exec bash
bash-4.2$ # up arrow to see history from shell that just exec'd
Same thing with octave shows that the history is lost:
octave:1> version
ans = 3.7.5
octave:2> exec octave
GNU Octave, version 3.7.5
[...]
octave:1> # up arrow to see that previous history was lost
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?39734>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #39734] interactive shell history should be saved on exec,
Mike Miller <=