[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: default write-history file after reading history file
From: |
indium |
Subject: |
Re: default write-history file after reading history file |
Date: |
Thu, 9 May 2013 09:49:21 +0000 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Fri, May 03, 2013 at 10:21:06AM -0600, E. Joshua Rigler wrote:
> Something very basic, but important to me, changed when I started using
> Octave on my new Mac.
>
> Previously, running Octave 3.4.2 on RH Linux, if I read a saved history
> file ("history -r ./file.hist"), the default save file was changed from
> ~/.octave_hist to ./file.hist. I could then simply exit, without calling
> "history -w ./file.hist", and my accumulated history would still be saved
> to file.hist.
>
> Now, running Octave 3.6.4 on OsX (installed via Fink), if I read a saved
> history file, do stuff, then exit, my accumulated history simply gets
> appended to the default ~/.octave_hist file.
>
> Assuming this is NOT a bug, is there any way to control this behavior in
> Octave that I am not aware of, or possibly an entry in the ~/.inputrc file?
>
> -EJR
Hi EJR,
this is not directly the answer to your question, but if you want to save the
last
session of commands, have a look at this script:
http://wiki.octave.org/BASH_and_Octave