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: Guillaume
Subject: [Octave-bug-tracker] [bug #47807] run behaves differently from Matlab on function m-files
Date: Thu, 05 May 2016 11:27:39 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

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

This looks about right.

The evaluation should indeed take place in the parent (using evalin ("caller",
...)) and the change back of directory should only happen if the
script/function does not modify the current directory (as already implemented
in the current version of run ()).

Out of curiosity, as used in your mock function, the onCleanup object is
stored in the "ans" variable and might therefore be cleared before the end of
the function - should it be attributed to a variable or is there something I
misunderstand about onCleanup ()?

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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