bugGNU Octave - Bugs: bug #42618, exist() input validation accepts...

 
 

bug #42618: exist() input validation accepts any value for type field

Submitted by:  Rik <rik5>
Submitted on:  Wed 25 Jun 2014 08:38:43 PM UTC  
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Inaccurate Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  dev Operating System:  GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 25 Jun 2014 08:38:43 PM UTC, original submission:

The exist() function can accept a type which is one of:
builtin, dir, file, var, class.

Octave accepts anything as the second argument and returns 0 without a warning. It would probably be nicer to check the type argument during input validation.

Example:

Rik <rik5>
Project Administrator

 

(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 rik5 (Submitted the item)
  •  

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

    Only project members can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-05-19 rik5 Open/ClosedOpen => Closed
    2015-05-19 rik5 StatusNone => Fixed
    2014-06-30 rik5 Summaryexist() input validation accepts any type => exist() input validation accepts any value for type field

    Back to the top


    Powered by Savane 3.3