From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7837 invoked from network); 27 Jul 2003 23:01:00 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 27 Jul 2003 23:01:00 -0000 Received: (qmail 8793 invoked by alias); 27 Jul 2003 23:00:33 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6417 Received: (qmail 8783 invoked from network); 27 Jul 2003 23:00:32 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 27 Jul 2003 23:00:32 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [212.227.126.171] by sunsite.dk (MessageWall 1.0.8) with SMTP; 27 Jul 2003 23:0:32 -0000 Received: from [212.227.126.206] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 19guVE-0001cj-00 for zsh-users@sunsite.dk; Mon, 28 Jul 2003 01:00:32 +0200 Received: from [217.81.115.33] (helo=zaphod.home.lan) by mrelayng.kundenserver.de with asmtp (TLSv1:EDH-RSA-DES-CBC3-SHA:168) (Exim 3.35 #1) id 19guVD-0000IX-00 for zsh-users@sunsite.dk; Mon, 28 Jul 2003 01:00:32 +0200 Received: from anarchy.home.lan (anarchy.home.lan [3ffe:b80:24b:1:200:21ff:fe22:a091]) by zaphod.home.lan (8.11.6/8.11.6) with ESMTP id h6RN0S703316 for ; Mon, 28 Jul 2003 01:00:28 +0200 From: Malte Starostik To: zsh-users@sunsite.dk Subject: exit status of interactive shell Date: Mon, 28 Jul 2003 01:00:16 +0200 User-Agent: KMail/1.5.9 X-Security-Warning: All Your Base Are Belong To Us! MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_KmFJ/2gXLSukWHw"; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200307280100.27387.malte.starostik@t-online.de> --Boundary-02=_KmFJ/2gXLSukWHw Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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= =20 sometimes a little surprising. I use konsole as terminal app and it display= s=20 the exit status if !=3D 0 when a session is closed. Now when the session wa= s an=20 interactive shell in which the last command failed/has been killed, this is= =20 displayed. Is there a way to make an interactive zsh always exit with 0 status unless = the=20 shell itself died uncleanly? TIA, =2DMalte --Boundary-02=_KmFJ/2gXLSukWHw Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQA/JFmKVDF3RdLzx4cRAn9pAJ0U+lsr7NFcv7b7/8fQFhW2Luy/pQCfc7ed mRSHlUkrw0pn8xMPqlX2TO0= =oN40 -----END PGP SIGNATURE----- --Boundary-02=_KmFJ/2gXLSukWHw--