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

Thomas Weber thomas.weber.mail at gmail.com
Fri Jan 2 02:43:39 CST 2009


On Thu, Jan 01, 2009 at 10:08:24PM -0800, Sergei Steshenko wrote:
> 
> 
> 
> --- 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.

This behaviour is consistent with Matlab's implementation, at least on
the version I currently have access to. 

I wonder what version is supposed to show, actually. Maybe it differs on
platforms where the default filesystem supports versioning?

	Thomas


More information about the Bug-octave mailing list