dir listing not starting with . and ..
Søren Hauberg
soren at hauberg.org
Wed Feb 4 09:19:43 CST 2009
ons, 04 02 2009 kl. 16:13 +0100, skrev Jaroslav Hajek:
> My fault, due to an older change string_vector::sort was not working.
> Patch uploaded:
> http://hg.savannah.gnu.org/hgweb/octave/rev/4238f2600a17
Thanks
> Note that readdir (and, consequently, dir) simply sorts the result.
> This does *not* ensure that . and .. go first.
> If, for instance, a file named "(" exists, it will end up first. Worse
> yet, this is compatible with Matlab 2007a.
You can actually call directories "(" ? Wow, that is a wonderful
feature ;-)
> So, maybe pkg should be fixed?
Yeah, I guess it should. I'll supply a patch some time tonight unless
anybody beats me to it...
Søren
More information about the Bug-octave
mailing list