From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8403 invoked from network); 12 Oct 2006 12:51:32 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.6 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 12 Oct 2006 12:51:32 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 93713 invoked from network); 12 Oct 2006 12:51:23 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 12 Oct 2006 12:51:23 -0000 Received: (qmail 585 invoked by alias); 12 Oct 2006 12:51:09 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10846 Received: (qmail 575 invoked from network); 12 Oct 2006 12:51:08 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 12 Oct 2006 12:51:08 -0000 Received: (qmail 91786 invoked from network); 12 Oct 2006 12:51:08 -0000 Received: from goliath.siemens.de (192.35.17.28) by a.mx.sunsite.dk with SMTP; 12 Oct 2006 12:51:05 -0000 Received: from mail3.siemens.de (localhost [127.0.0.1]) by goliath.siemens.de (8.12.6/8.12.6) with ESMTP id k9CCp1tL016477; Thu, 12 Oct 2006 14:51:01 +0200 Received: from mchp7wta.ww002.siemens.net (mchp7wta.ww002.siemens.net [139.25.131.193]) by mail3.siemens.de (8.12.6/8.12.6) with ESMTP id k9CCouRf016645; Thu, 12 Oct 2006 14:51:01 +0200 Received: from MCHP7R6A.ww002.siemens.net ([139.25.131.164]) by mchp7wta.ww002.siemens.net with Microsoft SMTPSVC(6.0.3790.1830); Thu, 12 Oct 2006 14:51:00 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: logout from interactive subshell Date: Thu, 12 Oct 2006 14:50:59 +0200 Message-ID: In-Reply-To: <20061012085526.GA6032@debian.inet> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: logout from interactive subshell thread-index: Acbt561it6h4KhUiRZC1sFsaGn7BcQAFQVtg From: "Com MN PG P E B Consultant 3" To: "Anton Zinoviev" Cc: , "zsh-users Mailinglist" X-OriginalArrivalTime: 12 Oct 2006 12:51:00.0573 (UTC) FILETIME=[11AD80D0:01C6EDFD] > > (1) rlogin to a foreign host > > (2) Invoke a subshell (for example because I'm setting a=20 > Clearcase > > View) > > (3) Logout from the host > >=20 > > Step (3) needs two steps: First I have to type 'exit' to leave the > > subshell, and then either 'exit' or 'logout' to leave the=20 > login shell. >=20 > On step (2) you use=20 >=20 > exec bash >=20 > instead of just bash. This does not work in the general case since I don't know at the time of invoking bash, whether I will eventually just go back one level or logout completely.=20 Imagine the following situation: rlogin foo VAR=3Dval1 exec bash VAR=3Dval2 Now if at this point I would decide to not logout, but just go up one level (in order to have the old value of VAR restored), there is no way to do it - typing exit would log me out *unconditionally*. Ronald --=20 Ronald Fischer (phone +49-89-63676431) mailto:mn-pg-p-e-b-consultant-3.com@siemens.com