which() changed behavior between 3.0 and 3.2

View: New views
2 Messages — Rating Filter:   Alert me  

which() changed behavior between 3.0 and 3.2

by sebastien.villemot :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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



_______________________________________________
Bug-octave mailing list
Bug-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/bug-octave

Re: which() changed behavior between 3.0 and 3.2

by Jaroslav Hajek-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/7/1 Sébastien Villemot <sebastien.villemot@...>:

> 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
>
>
>

See
http://hg.savannah.gnu.org/hgweb/octave/rev/2cc47338e427

thanks

--
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz

_______________________________________________
Bug-octave mailing list
Bug-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/bug-octave