[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-apl] .apl.history file?
From: |
David B. Lamkins |
Subject: |
Re: [Bug-apl] .apl.history file? |
Date: |
Wed, 20 Jul 2016 08:34:47 -0700 |
User-agent: |
Mutt/1.6.1 (2016-04-27) |
Thanks, Jürgen.
I see what's happening now: The history file is not enabled when input is from
a pipe, which is the case when I run akt|apl. The history file works as
expected when input is from a terminal.
I guess I should finally get around to rewriting akt to use forkpty(). :)
On Wed, Jul 20, 2016 at 12:40:41PM +0200, Juergen Sauermann wrote:
> Hi David,
>
> yes, it is in place (despite of its name which was not changed when readline
> was removed, so
> that existing preferences files would still work).
>
> Maybe you want to check with apl -l 37 in which order the preferences files
> are
> read.
>
> You can also modify the LineInput constructor like this to see what filename
> is
> being used:
>
> LineInput::~LineInput()
> {
> if (initial_termios_errno) return;
>
> Q(write_history)
> Q(uprefs.line_history_path.c_str())
> ...
>
>
> /// Jürgen
>
>
>
> On 07/20/2016 04:11 AM, David B. Lamkins wrote:
>
> Is the history file mechanism still in place?
>
> I have set READLINE_HISTORY_PATH in ~/.gnu-apl/preferences to
> /home/dlamkins/.apl.history .
>
> GNU APL doesn't create the history file, nor does it write to the file if
> I create it.
>
>
>
>