very weird problem loading datafile (sounds like a bug)

John W. Eaton jwe at bevo.che.wisc.edu
Tue Jun 3 14:16:57 CDT 2008


On  3-Jun-2008, Jaroslav Hajek wrote:

| On Tue, Jun 3, 2008 at 2:59 AM, francholi <flopezluro at gmail.com> wrote:
| >
| > Hi, I have a set of ascii files, named from 0 to 9, I'm loading these files
| > to calculate covariance matrices and eigenvectors,
| > everything works fine, but I'm having trouble to load file named 7.....so,
| > you are thinking, "and what?",
| > well, it's just that, the file named 7 doesn't load, if I rename it to "70",
| > it loads fine, if I rename the file named 0 to 7, then the file that 1
| > minute before worked perfect, now named as 7 just doesn't load.
| > Somebody please can tell me, why in the hell, just the file named 7 doesn't
| > load ????
| > I tried from octave console, from bash as an argument, any name works fine,
| > but "7" doesn't work.
| > I really feel like a stupid, so anyone can start his response in any terms,
| > I'll no take it as an offense.
| >
| > I'm using
| > Ubuntu Linux,
| > Octave 3.0.0,
| > Octave was configured for "i486-pc-linux-gnu".
| > kernel 2.6.24,
| >
| > I can't put here the contents of my very super secret files, so a very
| > simple test of my problem is:
| >
| > octave:1> a = [1 2];
| > octave:2> save("7","a");
| > octave:3> load("7")
| >
| > Invalid call to load.  Correct usage is:
| >
| >  -- Command: load options file v1 v2 ...
| >
| >
| > Additional help for built-in functions and operators is
| > available in the on-line version of the manual.  Use the command
| > `doc <topic>' to search the manual index.
| >
| > Help and information about Octave is also available on the WWW
| > at http://www.octave.org and via the help at octave.org
| > mailing list.
| >
| > octave:3> save("8","a");
| > octave:4> load("8")
| > octave:5>
| >
| > Please, try this at home and tell me that I'm not crazy......
| > :-/
| 
| No, you definitely are not crazy. It's a minor bug and the cause is
| not hard to guess:
| the -7 option is parsed incorrectly. Attached a fix.

I applied the changeset.

Thanks,

jwe


More information about the Bug-octave mailing list