[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #39889] run('path/to/file') doesn't when ".m"
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #39889] run('path/to/file') doesn't when ".m" is missing |
Date: |
Fri, 18 Oct 2013 01:46:15 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.57 Safari/537.36 |
Follow-up Comment #6, bug #39889 (project octave):
I had someone check what run does on a "testscript" with different file
extensions. If the files testscript, testscript.m, and testscript.txt all
exist in the current directory, and each with a call to disp to show their own
name:
>> run testscript
In testscript.m
>> run testscript.m
some error message
>> run ./testscript
Inside testscript.m
>> run ./testscript.m
Inside testscript.m
>> run ./testscript.txt
some error message
So what it looks like is Matlab only supports run on .m files, adds the .m
extension if it is missing, and refuses to run any non-.m files.
Octave currently supports run on any file, with or without an extension. So
how far do we want to go with Matlab compatibility here?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?39889>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/