Fri 02 Apr 2010 01:32:44 PM UTC, original submission:
how to reproduce the problem:
cd /
help help
this results in
- no help text being displayed
- an error message:
error: fwrite: invalid stream number = -1
error: called from:
error: /usr/share/octave/3.2.4/m/help/__makeinfo__.m at line 147, column 5
error: /usr/share/octave/3.2.4/m/help/help.m at line 62, column 25
Suggestion to FIX:
in the file "__makeinfo__.m" modify line 127 from
[fid, name, msg] = mkstemp ("octave_help_XXXXXX", true);
to
[fid, name, msg] = mkstemp ([ P_tmpdir(), filesep(), "octave_help_XXXXXX" ], true);
Then octave does not try to create a file in CWD.
Thanks for your great work and best regards
T. Finke
PS.: the problem had been described before somewhere on the internet (including a bugfix suggestion), but I can't find it again.
|