bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] Ctrl-D and )off


From: Juergen Sauermann
Subject: Re: [Bug-apl] Ctrl-D and )off
Date: Fri, 19 Dec 2014 15:03:22 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.0

Hi,

I have added a parameter CONTROL-Ds-TO-EXIT to the preferences file.

The default 0 is the current behavior. A positive number tells how many ^Ds in a row
will exit the interpreter. SVN 516.

/// Jürgen


On 12/19/2014 11:54 AM, Jay Foad wrote:
(Resending because I forgot to cc the list.)

I agree that this is annoying, especially for new and casual users.

The only good reason I can think of for APL not exiting on Ctrl-D is
that if you accidentally hit Ctrl-D, you could accidentally lose the
whole contents of your workspace.

At least in GNU APL, if you hit Ctrl-D you get a message telling you
how to leave the interpreter.

Jay.

On 17 December 2014 at 20:06, Tobia Conforto <address@hidden> wrote:
Hello

Is there a reason why GNU APL does not exit on EOF, aka. Ctrl-D on cooked
input? Every shell and interpreter I have ever used does so by default.

Maybe there are people who are used to typing "exit" or "logout" by hand,
but for those of us who have always hit Ctrl-D to exit from any interactive
line-oriented application, GNU APL's persistent refusal to do so is quite
annoying ;-)

Even Bash, when it has background jobs still running (that would become
orphaned or receive sighup) will print a warning at the first Ctrl-D, but
comply without further ado at the second one.

If there is no valid reason, meaning that it's just some historic behaviour
of APL interpreters, I would suggest changing it so that it's more coherent
with the rest of GNU CLI tools. If instead there are valid reasons, could
there be an option in the preferences file to enable it?

Tobia



reply via email to

[Prev in Thread] Current Thread [Next in Thread]