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

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

[Octave-bug-tracker] [bug #39891] run command doesn't execute function


From: Jordi Gutiérrez Hermoso
Subject: [Octave-bug-tracker] [bug #39891] run command doesn't execute function
Date: Thu, 29 Aug 2013 13:39:45 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0 Iceweasel/23.0

Follow-up Comment #2, bug #39891 (project octave):

For vlfeat, there is a simple workaround.

Instead of doing


run VLFEATROOT/toolbox/vl_setup


do


oldir = pwd
cd VLFEATROOT/toolbox
vl_setup
cd(oldir)


You could make this a wrapper into the actual vl_setup script.

You will note that you're abusing an undocumented Matlab feature here. The
Matlab docs clearly state that "run" is for script files, not for function
files:

http://www.mathworks.com/help/matlab/ref/run.html

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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