octaverc and version in path?

Ben Abbott bpabbott at mac.com
Sun Dec 30 11:12:18 CST 2007


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


More information about the Octave-maintainers mailing list