Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: exit after 10 EOF's
- X-seq: zsh-workers 20384
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: PATCH: exit after 10 EOF's
- Date: Sun, 19 Sep 2004 09:41:42 -0700 (PDT)
- In-reply-to: <D8064C1C-0A0F-11D9-A0DD-0003931123E4@xxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <200409131118.i8DBIM5B005245@xxxxxxxxxxxxxx> <Pine.LNX.4.61.0409181943300.6971@xxxxxxxxxxxxxxxxxx> <D8064C1C-0A0F-11D9-A0DD-0003931123E4@xxxxxxxxxxxxxxxx>
- Reply-to: zsh-workers@xxxxxxxxxx
On Sun, 19 Sep 2004, Duncan Sinclair wrote:
> But in the absence of any special binding I don't see what's wrong with
> giving in and exiting after <some number> of the standard ignoreeof
> warnings have been printed.
You may have hit on the solution. Rather than counting the number of EOF
key presses, count the number of warnings printed. Thus suppressing the
warning is the same as suppressing the exit behavior (which is not true of
the code as patched by 20363). I'd settle for that, I think.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author