which() changed behavior between 3.0 and 3.2

Sébastien Villemot sebastien.villemot at ens.fr
Wed Jul 1 08:44:16 CDT 2009


Hi everyone,

Between Octave 3.0 and 3.2, the which() function has changed its
behaviour. More precisely, in 3.2, it no longer accepts script or
function filenames (with the ".m" extension) in argument.


Before:

octave3.0:1> x = which("betacdf.m")
x = /usr/share/octave/3.0.5/m/statistics/distributions/betacdf.m

After:

octave3.2:1> x = which("betacdf.m")
x = 


Is this a bug or is it the new expected behaviour?

Note that in MATLAB, which() accepts filenames, like in Octave 3.0.

Best,

-- 
Sébastien Villemot





More information about the Bug-octave mailing list