Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: logout from interactive subshell
- X-seq: zsh-users 10839
- From: Peter Stephenson <pws@xxxxxxx>
- To: bug-bash@xxxxxxx, "zsh-users Mailinglist" <zsh-users@xxxxxxxxxx>
- Subject: Re: logout from interactive subshell
- Date: Thu, 12 Oct 2006 10:45:46 +0100
- In-reply-to: <F7507090F1A72B43A51444325DFBE43101391E41@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <F7507090F1A72B43A51444325DFBE43101391E41@xxxxxxxxxxxxxxxxxxxxxxxxxx>
"Com MN PG P E B Consultant 3" wrote:
> rlogin foobar
> DO SOME STUFF
> cleartool setview myview # this creates a subshell
> DO MORE STUFF
> cleartool setview yourview # now I'm two subshells deep
> DO STILL MORE STUFF
> # Now I want to exit
> exit
> exit
> logout
You can turn cleartool into a function that exits the shell after
running the real cleartool.
cleartool() { command cleartool "$@"; exit; }
Works in both shells.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php
Messages sorted by:
Reverse Date,
Date,
Thread,
Author