bugGNU Octave - Bugs: bug #31037, exist() does not detect special...

 
 

bug #31037: exist() does not detect special files

Submitter:  hydromer <hydromer>
Submitted:  Tue 14 Sep 2010 05:16:31 PM UTC
   
 
Category:  Libraries Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.2.4 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 14 Sep 2010 05:52:46 PM UTC, comment #1: 

I checked in the following change:

  http://hg.savannah.gnu.org/hgweb/octave/rev/2d14817353a6

John W. Eaton <jwe>
Group administrator
Tue 14 Sep 2010 05:16:31 PM UTC, original submission:  

Hello,

exist() does not detect special files :


octave> exist('/dev/null')
ans = 0


The expected result is 2 because the documentation of exist() says :

Return [...] 2 if the name is an absolute file name [...]


(moreover it works in this way in matlab and freemat)

Thank you for your work.

hydromer <hydromer>

 

(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 hydromer (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-09-14 jwe StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code