|
From: | Rik |
Subject: | [Octave-bug-tracker] [bug #57531] what() reports a directory ending in ".m" as an m-file script |
Date: | Fri, 3 Jan 2020 12:37:00 -0500 (EST) |
User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko |
URL: <https://savannah.gnu.org/bugs/?57531> Summary: what() reports a directory ending in ".m" as an m-file script Project: GNU Octave Submitted by: rik5 Submitted on: Fri 03 Jan 2020 09:36:58 AM PST Category: Octave Function Severity: 3 - Normal Priority: 5 - Normal Item Group: Incorrect Result Status: Confirmed Assigned to: None Originator Name: Originator Email: Open/Closed: Open Discussion Lock: Any Release: dev Operating System: Any _______________________________________________________ Details: 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. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?57531> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |