From: DervishD <raul@pleyades.net>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: Zsh Users <zsh-users@sunsite.dk>
Subject: Re: Why Zsh doesn't warn me again?
Date: Wed, 10 Dec 2003 15:03:03 +0100 [thread overview]
Message-ID: <20031210140303.GB394@DervishD> (raw)
In-Reply-To: <1031210062709.ZM28621@candle.brasslantern.com>
Hi Bart :)
* Bart Schaefer <schaefer@brasslantern.com> dixit:
> As far as I can tell, that isn't specifically documented anywhere, it's
> just the behavior that was considered most logical.
And that's (almost) true. A bit unexpected, maybe.
> The second problem is that typing the EOF character (ctrl-D) is not the
> same as using `exit'.
OK, I was supposing that the code that interpreted EOF wasn't at
the same level than the code that interpreted exit or logout, but I
wasn't sure...
> It takes at least _two_ commands after an attempt
> to exit before zsh will warn you again on an EOF.
OK. I was testing with just one command O:)
> This happens because EOF is interpreted earlier in the command loop,
> so zsh fails to properly decrement the attempted-to-exit counter (a
> global called "stopmsg" if you look at the C source). I'd say this
> is a bug.
If EOF is intended as a synonim for 'exit', yes, it's a bug.
Otherwise...
> } How can I change this (without IGNORE_EOF'ing) so Zsh act like the
> } doc says?
> Use the "stty" command to set the EOF character to something other
> than ctrl-D, and then bind ^D to a function similar to this one:
[...]
Nice, thanks, but I think I must get used to use 'exit' or
'logout' instead of EOF... It's a bad habit anyway, because sometimes
I've exited a terminal accidentally with backgrounded jobs because
I've hitted ^D twice due to a bad finger movement (a trembling
finger...). Using a command to exit is less error-prone.
> (Remember to change the eof character before you freeze the tty, if you
> happen to be using ttyctl.)
Thanks :))
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736
http://www.pleyades.net & http://raul.pleyades.net/
prev parent reply other threads:[~2003-12-10 19:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-09 15:20 DervishD
2003-12-10 6:27 ` Bart Schaefer
2003-12-10 14:03 ` DervishD [this message]
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=20031210140303.GB394@DervishD \
--to=raul@pleyades.net \
--cc=schaefer@brasslantern.com \
--cc=zsh-users@sunsite.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).