bugGNU Octave - Bugs: bug #53800, Typing "exit" in a cell...

 
 

bug #53800: Typing "exit" in a cell of the variable editor will exit the application

Submitter:  Dan Sebald <sebald>
Submitted:  Tue 01 May 2018 05:04:37 AM UTC
 
Category:  GUI Severity:  3 - Normal
Priority:  3 - Low Item Group:  Unexpected Error or Warning
Status:  Confirmed 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)
   

Comment Type & Canned Response:
       

 

Wed 02 May 2018 02:54:33 AM UTC, comment #2: 

figure seems valid...  I mean, it returns a number.  :-)

Since exit and quit throw exceptions, we could catch those and turn them into warnings.  That's probably better than trying to detect a list of forbidden expressions.

John W. Eaton <jwe>
Project Administrator
Tue 01 May 2018 10:43:43 PM UTC, comment #1: 

It would probably be nicer, it's true, but it might be a lot of work.  Right now, as you have found, the input is captured and eval'ed.  This is useful because you can have expressions such as

1 + 2 + sind (45)

I don't see an easy way to police what the user types.

Rik <rik5>
Project Administrator
Tue 01 May 2018 05:04:37 AM UTC, original submission:  

After launching the GUI, type

x = eye(3); openvar x; y = magic(4); openvar y;

at the command line.  Click in one of the cells of one of the variables and type "exit" followed by the Enter key.

There is probably a class of commands such as 'quit', 'exit', 'figure', etc. that should be disallowed in the variable editor.

Dan Sebald <sebald>

 

(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 rik5 (Posted a comment)
  • -email is unavailable- added by sebald (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 project members can vote.

     

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-05-01 rik5 Priority5 - Normal 3 - Low
        StatusNone Confirmed

    Back to the top


    Powered by Savane 3.9