From: Christoph Lange <langec@gmx.de>
To: zsh-workers@sunsite.auc.dk
Subject: [Suggestion] IGNORE_EOF like in bash
Date: Fri, 23 Jun 2000 16:41:32 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.10.10006231632370.2579-100000@langec.myip.org> (raw)
Hi there,
I suggest that the IGNORE_EOF shell option should be implemented in the
same way as in bash. There, it is a shell variable rather than an option.
The best explanation is given in the bash manual page:
IGNOREEOF
Controls the action of an interactive shell on
receipt of an EOF character as the sole input. If
set, the value is the number of consecutive EOF
characters which must be typed as the first charac
ters on an input line before bash exits. If the
variable exists but does not have a numeric value,
or has no value, the default value is 10. If it
does not exist, EOF signifies the end of input to
the shell.
The advantage is that a user can set that variable to 3, for example, to log
out after three presses of ^D.
If you should not like to hard-code it into the shell, you should consider
the following workaround: the shell must not catch ^D on an empty command
line before any invocation of a zle widget. If ^D on an empty command is
passed to zle, too, users can write their own zle widget which ignores it,
let's say 3 times, and then logs out.
Regards,
Christoph
PS: Please send answers directly to me, since I don't subscribe the list.
--
"NSA GCHQ KGB CIA nuclear conspiration war weapon spy agent... Hi Echelon!"
Christoph Lange, langec@gmx.de, http://www.cul.de/home/yaph/, ICQ #51191833
next reply other threads:[~2000-06-23 14:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-06-23 14:41 Christoph Lange [this message]
2000-06-26 9:54 Sven Wischnowsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.10.10006231632370.2579-100000@langec.myip.org \
--to=langec@gmx.de \
--cc=duke@cyberspaces.de \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).