[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #42618] exist() input validation accepts any t
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #42618] exist() input validation accepts any type |
Date: |
Wed, 25 Jun 2014 20:38:43 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0 |
URL:
<http://savannah.gnu.org/bugs/?42618>
Summary: exist() input validation accepts any type
Project: GNU Octave
Submitted by: rik5
Submitted on: Wed 25 Jun 2014 01:38:43 PM PDT
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Inaccurate Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
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
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?42618>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #42618] exist() input validation accepts any type,
Rik <=