Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: exit after 10 EOF's
- X-seq: zsh-workers 20376
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Peter Stephenson <pws@xxxxxxx>
- Subject: Re: PATCH: exit after 10 EOF's
- Date: Thu, 16 Sep 2004 09:12:44 -0700 (PDT)
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <200409161457.i8GEvWru012584@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <200409131118.i8DBIM5B005245@xxxxxxxxxxxxxx> <Pine.LNX.4.61.0409131047340.10799@xxxxxxxxxxxxxxxxxx> <200409150946.i8F9k81A008659@xxxxxxxxxxxxxx> <Pine.LNX.4.61.0409150818210.20146@xxxxxxxxxxxxxxxxxx> <Pine.LNX.4.61.0409150854430.20146@xxxxxxxxxxxxxxxxxx> <200409151614.i8FGE5nC010329@xxxxxxxxxxxxxx> <200409161457.i8GEvWru012584@xxxxxxxxxxxxxx>
- Reply-to: zsh-workers@xxxxxxxxxx
On Thu, 16 Sep 2004, Peter Stephenson wrote:
> This should cover all bases. The basic rule is that in ZLE ignore_eof
> means the EOF character is always treated as a normal key.
> I hope this makes fluffy bunnies gambol in the field.
Sorry, my bunnies are not gamboling, they're sharpening pitchforks and
looking for torches. This is a backwards-incompatible change, and I
object to it. The default behavior of ZLE on receiving an EOF character
is supposed to be identical to the default behavior of 4.3BSD csh upon
receiving an EOF character. That is, either exit (when not ignoreeof) or
print a warning (when ignoreeof) if the character is received at the start
of an empty buffer.
Note that you CANNOT handle this with widgets, because "stty eof" is not
dependent on widget bindings. The above behavior has to occur on receipt
of the tty eof character, even if that has been changed, without changing
(or requiring the user to change) the underlying keybindings.
> If you want any other behaviour you can use a widget.
No, you can't, see above.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author