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

 
 

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

Submitter:  Rik <rik5>
Submitted:  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
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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:


exist ("sin", "foobar")
=> 0


Rik <rik5>
Group 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)
  •  

    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 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.13-f8d8.
    Corresponding source code