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

Re: distinguishing shells



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 | 
===============================================================================

AltStyle によって変換されたページ (->オリジナル) /