[Pkg-octave-devel] Bug#514802: Bug#514802: Bug#514802: Bug#514802: octave-symbolic: (un)install accesses user .octave_hist

John W. Eaton jwe at octave.org
Fri Feb 13 18:06:10 UTC 2009


On 12-Feb-2009, Thomas Weber wrote:

| Am Mittwoch, den 11.02.2009, 17:55 +0100 schrieb Rafael Laboissiere:
| > * Thomas Weber <thomas.weber.mail at gmail.com> [2009-02-11 13:34]:
| > 
| > > I don't think so. Seems to me like octave is accessing .octave_hist
| > > despite the --no-history flag. Snippet from 
| > > 	$ strace -f octave --no-history
| > > 
| > > open("/home/weber/.octave_hist", O_RDONLY) = 3
| > > open("/home/weber/.octave_hist", O_WRONLY|O_CREAT|O_TRUNC, 0600) = 3
| > > 
| > > I seem to remember that this came up once already, but can't find it
| > > currently.
| > 
| > Is this an upstream bug?
| 
| If it's a bug, yes. It seems that --no-history only influences the
| saving of the new command at the end of an Octave session. 
| 
| Then again, it seems logical to read it, so you can scroll the history
| of past commands. I'm not sure that fixing the current corner-case of
| non-readable .octave_hist file is worth the effort.

The option --no-history is supposed to mean no history at all.  What I
see is that the history file is not read, and commands are not saved
to the history list, but then the history (an empty list) is still
saved to the history file when Octave exits, wiping out whatever was
there before.  I checked in the following change.

Thanks,

jwe

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
Url: http://lists.alioth.debian.org/pipermail/pkg-octave-devel/attachments/20090213/510ee206/attachment.txt 


More information about the Pkg-octave-devel mailing list