octave-bug-tracker
[Top][All Lists]
Advanced

[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: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #39889] run('path/to/file') doesn't when ".m" is missing
Date: Mon, 30 Sep 2013 22:39:38 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:23.0) Gecko/20100101 Firefox/23.0

Follow-up Comment #5, bug #39889 (project octave):

One more octave feature I hadn't noticed ... 

I could check matlab does not support running files with no file extension (at
leat using "run"). Thus, for matlab compatibility your example should run
~/myscript.m (and maybe warn the user that ~/myscript.m was run, and that he
can use source to run the desired file)

If no directory is provided e.g., 

run ("myscript")

run myscript.m if it exists in the path else run myscript if it exists in the
path

This preserves the ability to run files with no file extension in most of the
cases without breaking ml compatibility. 






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?39889>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]