bugGNU Octave - Bugs: bug #43536, history_ignore: add a function to...

 
 

bug #43536: history_ignore: add a function to omit a set of commands from history

Submitter:  Armin Müller <arm_in>
Submitted:  Wed 05 Nov 2014 12:28:25 PM UTC
   
 
Category:  Octave Function Severity:  1 - Wish
Priority:  3 - Low Item Group:  Matlab Compatibility
Status:  Postponed Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 05 Nov 2014 08:00:17 PM UTC, comment #3: 

Nice, I don't use HISTIGNORE so I wasn't aware of that one. Sounds like the right solution and a good project for someone who wants that functionality.

Mike Miller <mtmiller>
Group Member
Wed 05 Nov 2014 07:26:39 PM UTC, comment #2: 

If someone wants to work on this, I recommend creating a function called history_ignore that would provide functionality similar to the way the HISTIGNORE variable works in bash.  That makes sense to me given that Octave's history_control function is similar to the HISTCONTROL variable in bash.

John W. Eaton <jwe>
Group administrator
Wed 05 Nov 2014 01:46:17 PM UTC, comment #1: 

Point 2 is addressed with the history_control function, in either GUI or terminal. Call


history_control ("ignoredups");


to ignore duplicate consecutive commands. Add this to your octaverc file to make the change permanent (I use this setting).

Mike Miller <mtmiller>
Group Member
Wed 05 Nov 2014 12:28:25 PM UTC, original submission:  

In Matlab, there is an option to omit certain commands in the command history:
1) "exit", "quit"
2) consecutive commands

It would be nice to have such an option in Octave, also.

http://www.mathworks.de/de/help/matlab/matlab_env/command-history.html

Armin Müller <arm_in>

 

(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 (Posted a comment)
  • -email is unavailable- added by arm_in (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 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-10-05 mtmiller CategoryInterpreter Octave Function
        StatusNone Postponed
        SummaryAdd a hist_ignore function to omit commands from history history_ignore: add a function to omit a set of commands from history
    2014-11-05 mtmiller CategoryGUI Interpreter
        Release3.8.2 dev
        SummaryOmit &quot;exit&quot;, &quot;quit&quot; &amp; consecutive commands from history Add a hist_ignore function to omit commands from history
    2014-11-05 jwe Priority5 - Normal 3 - Low
    2014-11-05 mtmiller Severity3 - Normal 1 - Wish

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code