bugGNU Octave - Bugs: bug #39734, interactive shell history should...

 
 

bug #39734: interactive shell history should be saved on exec

Submitter:  Mike Miller <mtmiller>
Submitted:  Fri 09 Aug 2013 03:19:33 AM UTC
   
 
Category:  Interpreter Severity:  1 - Wish
Priority:  5 - Normal Item Group:  Feature Request
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 13 Aug 2013 08:52:48 PM UTC, comment #1: 

I checked in the following changeset:

http://hg.savannah.gnu.org/hgweb/octave/rev/6a6e3f1a824c

John W. Eaton <jwe>
Group administrator
Fri 09 Aug 2013 03:19:33 AM UTC, original submission:  

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


Mike Miller <mtmiller>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by mtmiller (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-08-13 jwe StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code