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

 
 

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

Submitted by:  Mike Miller <mtmiller>
Submitted on:  Fri 09 Aug 2013 03:19:33 AM UTC  
 
Category: InterpreterSeverity: 1 - Wish
Priority: 5 - NormalItem Group: Feature Request
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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:

Same thing with octave shows that the history is lost:

Mike Miller <mtmiller>
Project Administrator

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 13 Aug 2013 08:52:48 PM UTCjweStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1