octave-maintainers
[Top][All Lists]
Advanced

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

Re: octaverc and version in path?


From: Ben Abbott
Subject: Re: octaverc and version in path?
Date: Mon, 31 Dec 2007 01:12:18 +0800


On Dec 31, 2007, at 12:49 AM, John W. Eaton wrote:

The savepath function only exists for compatibility with Matlab, so
whatever it does should be compatible.

jwe

Good point.

I did a quick check. For the most recent Matlab savepath.m writes pathsep.m. The location is

        /Applications/MATLAB_2007b/toolbox/local/pathdef.m

Which means that savepath is not user specific, but is global to all users (at least on Mac OS X).

This also means that pathdef.m is different for Octave. With octave, pathdef is built in and returns the "virgin" default, not the last result saved by "savepath.m".

There are also a few additional path related functions in Matlab that aren't yet in Octave. For example, "restoredefaultpath" essentially is equivalent to "path (pathdef)" in Octave.

hmmmm, how much compatibility do we go for?

Ben


reply via email to

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