From: Malte Starostik <malte.starostik@t-online.de>
To: zsh-users@sunsite.dk
Subject: exit status of interactive shell
Date: Mon, 28 Jul 2003 01:00:16 +0200 [thread overview]
Message-ID: <200307280100.27387.malte.starostik@t-online.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 531 bytes --]
Hi,
when leaving a shell, the return status is that of the last command.
This makes sense, especially for scripts. But in an interactive shell, it's
sometimes a little surprising. I use konsole as terminal app and it displays
the exit status if != 0 when a session is closed. Now when the session was an
interactive shell in which the last command failed/has been killed, this is
displayed.
Is there a way to make an interactive zsh always exit with 0 status unless the
shell itself died uncleanly?
TIA,
-Malte
[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2003-07-27 23:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-27 23:00 Malte Starostik [this message]
2003-07-28 6:46 ` Borzenkov Andrey
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=200307280100.27387.malte.starostik@t-online.de \
--to=malte.starostik@t-online.de \
--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).