[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: distinguishing shells
- To: es@hawkwind.utcs.toronto.edu
- Subject: Re: distinguishing shells
- From: "Jayant (J.) Kulkarni" <jayant@bnr.ca>
- Date: Thu, 23 Sep 1993 13:56:00 -0400
- Sender: "Jayant (J.) Kulkarni" <jayant@bnr.ca>
- X400-content-type: P2-1984 (2)
- X400-mts-identifier: [/PRMD=BNR/ADMD=TELECOM.CANADA/C=CA/;bcars735.b.386:23.08.93.23.05.23]
- X400-originator: /DD.ID=1647319/G=Jayant/I=J/S=Kulkarni/@bnr.ca
- X400-received: by mta x400gate.bnr.ca in /PRMD=BNR/ADMD=TELECOM.CANADA/C=CA/; Relayed; Thu, 23 Sep 1993 19:05:30 -0400
- X400-received: by /PRMD=BNR/ADMD=TELECOM.CANADA/C=CA/; Relayed; Thu, 23 Sep 1993 19:05:23 -0400
- X400-received: by /PRMD=BNR/ADMD=TELECOM.CANADA/C=CA/; Relayed; Thu, 23 Sep 1993 13:56:00 -0400
In message "distinguishing shells", trost@indurain.cse.ogi.edu writes:
> Paul Haahr writes:
> what do you mean distinguish?
>
> I mean I want to be able to write the following in my script:
>
> magic-stuff-I'm-asking-for || {
> echo Oops! This is the Bourne shell! I will feed myself to es.
> exec es $0 ${1+"$@"}
> }
>
If that is acceptable, why not always create a new es shell? Brute
force, but should work.
Jayant
===============================================================================
Jayant Kulkarni | Office:
Bell Northern Research, | Voice (214) 684-5591
Dept. 2T15/D0307 | Fax (214) 684-3710
P.O. Box 833871, | Email jayant@bnr.ca.
Richardson, TX 75083-3871 |
===============================================================================