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 FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Inaccurate Result
Status: NoneAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: GNU/Linux

Add a New Comment (Rich MarkupRich 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 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 rik5 (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):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 30 Jun 2014 01:43:01 AM UTCrik5Summaryexist() input validation accepts any type=>exist() input validation accepts any value for type field

    Back to the top


    Powered by Savane 3.1-cleanup