zsh-users
 help / color / mirror / code / Atom feed
From: "Com MN PG P E B Consultant 3" <mn-pg-p-e-b-consultant-3.com@siemens.com>
To: "Anton Zinoviev" <anton@lml.bas.bg>
Cc: <bug-bash@gnu.org>, "zsh-users Mailinglist" <zsh-users@sunsite.dk>
Subject: RE: logout from interactive subshell
Date: Thu, 12 Oct 2006 14:50:59 +0200	[thread overview]
Message-ID: <F7507090F1A72B43A51444325DFBE43101391F4F@MCHP7R6A.ww002.siemens.net> (raw)
In-Reply-To: <20061012085526.GA6032@debian.inet>

> >    (1) rlogin to a foreign host
> >    (2) Invoke a subshell (for example because I'm setting a 
> Clearcase
> > View)
> >    (3) Logout from the host
> > 
> > Step (3) needs two steps: First I have to type 'exit' to leave the
> > subshell, and then either 'exit' or 'logout' to leave the 
> login shell.
> 
> On step (2) you use 
> 
> exec bash
> 
> 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. 
Imagine the following situation:

  rlogin foo
  VAR=val1
  exec bash
  VAR=val2

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
-- 
Ronald Fischer (phone +49-89-63676431)
mailto:mn-pg-p-e-b-consultant-3.com@siemens.com


       reply	other threads:[~2006-10-12 12:51 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20061012085526.GA6032@debian.inet>
2006-10-12 12:50 ` Com MN PG P E B Consultant 3 [this message]
     [not found] <jepscxrcvq.fsf@sykes.suse.de>
2006-10-12 12:36 ` Com MN PG P E B Consultant 3
     [not found] <jefydtsvyt.fsf@sykes.suse.de>
2006-10-12 10:08 ` Com MN PG P E B Consultant 3
     [not found] <Acbt2xG0TAhlYr+yQr+Yg16SvmfXSg==>
2006-10-12  8:47 ` Com MN PG P E B Consultant 3
2006-10-12  9:10   ` Mikael Magnusson
2006-10-12  9:29     ` Com MN PG P E B Consultant 3
2006-10-12  9:45       ` Peter Stephenson
2006-10-12 10:07       ` Lloyd Zusman
2006-10-12 14:58         ` Bart Schaefer
2006-10-12 22:24           ` Vincent Lefevre
2006-10-12 10:16       ` Christian Taylor
2006-10-13 12:17         ` Brian K. White
2006-10-14  1:44           ` Phil Pennock
2006-10-15  9:23             ` Brian K. White
2006-10-12 10:04   ` Vincent Lefevre
2006-10-12 10:20     ` Com MN PG P E B Consultant 3
2006-10-12 15:04       ` Bart Schaefer
2006-10-12 18:09   ` Matthew Woehlke
2006-10-12 20:15     ` Mike Stroyan
2006-10-13  6:28     ` Com MN PG P E B Consultant 3

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=F7507090F1A72B43A51444325DFBE43101391F4F@MCHP7R6A.ww002.siemens.net \
    --to=mn-pg-p-e-b-consultant-3.com@siemens.com \
    --cc=anton@lml.bas.bg \
    --cc=bug-bash@gnu.org \
    --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).