'version' returned by 'fileparts' is apparently always an empty string

Sergei Steshenko sergstesh at yahoo.com
Fri Jan 2 00:08:24 CST 2009




--- On Thu, 1/1/09, John W. Eaton <jwe at octave.org> wrote:

> From: John W. Eaton <jwe at octave.org>
> Subject: 'version' returned by 'fileparts' is apparently always an empty string
> To: sergstesh at yahoo.com
> Cc: bug-octave at octave.org
> Date: Thursday, January 1, 2009, 7:09 PM
> On  1-Jan-2009, Sergei Steshenko wrote:
> 
> | I came to the conclusion written in the subject observing
> source code of
> | 'fileparts' - IMO the only place
> 'version' gets value is line #43:
> |
> | [...]
> | 
> | The file is:
> | 
> |
> octave-3.0.3/share/octave/3.0.3/m/miscellaneous/fileparts.m
> 
> So what is the bug you are reporting?  What OS and
> filesystem
> combination are you using that has versioned files?
> 
> jwe


The bug is that functionally there is no need to have a variable which
always gets the same value.

As I wrote in the original Email, I wasn't using the 'fileparts' function,
I was just looking at/into its implementation.

FWIW, I'm running Linux with ext3 filesystem, but it's irrelevant for the
report.

If the implementation is meant to be compatible with Matlab, then it's
not a bug in the code.

In any case, the documentation should describe under which circumstances
(if any) 'version' becomes a non-empty string.

Thanks,
  Sergei.


      


More information about the Bug-octave mailing list