bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: logout from interactive subshell


From: Peter Stephenson
Subject: Re: logout from interactive subshell
Date: Thu, 12 Oct 2006 10:45:46 +0100

"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@csr.com>                  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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]