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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #47807] run behaves differently from Matlab on


From: Julien Bect
Subject: [Octave-bug-tracker] [bug #47807] run behaves differently from Matlab on function m-files
Date: Fri, 29 Apr 2016 15:48:43 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #1, bug #47807 (project octave):

Some thoughts about this issue:

 * Matlab's behaviour in this case is not clearly documented, but it is
somewhat natural: in all cases, run ("toto.m") produces the same result as
executing the command "toto" (assuming toto.m is on the path).

 * In Octave, run() relies internally on source().  There is of course nothing
wrong with source() behaving this way, since source() is an Octave-only
function (perhaps should it be documented explicitely ?).  The problem is that
run() should not simply rely on source(), at least in this case.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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