bugGNU Octave - Bugs: bug #57531, what() reports a directory ending...

 
 

bug #57531: what() reports a directory ending in ".m" as an m-file script

Submitter:  Rik <rik5>
Submitted:  Fri 03 Jan 2020 05:36:58 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 03 Jan 2020 05:44:39 PM UTC, comment #1: 

Fixed in this changeset https://hg.savannah.gnu.org/hgweb/octave/rev/f7279dd915d8.

Closing report.

Rik <rik5>
Group administrator
Fri 03 Jan 2020 05:36:58 PM UTC, original submission:  

Steps to reproduce:

1) Create a directory in the pwd with "mkdir myfolder.m"
2) run-octave
3) what

This is clearly incorrect and caused by the fact that there is only a check on the name of the object returned by readdir rather than a second check that it is a file.

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

    Date Changed by Updated Field Previous Value => Replaced by
    2020-01-03 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code