> >First, whoever implements the "[ -x /bin/tcsh ]" *knows*, in advance,> >that 
> >that is where the shell is, and that it is executable. -x is just> > a 
> >sanity test, in order to be able to adapt to circumstances as much> >as 
> >possible.> > In those cases that the dynamic linker failed (corrupted or no 
> >libraries)> on Solaris 9, the profile entry would possibly cause a 
> >successful exec> but tcsh would then immediately die. Root would then be 
> >kicked out again.> > You can use something like:> > if [ -x /bin/tcsh ] && 
> >/bin/tcsh -f /dev/null> then> exec /bin/tcsh> fi
Not a bad idea. Not bad at all. Of course, the extra fork() is a shame, but it 
will work.
 
> Test for the presence of the shell, make it execute an empty script> and if 
> that all works, start the shell in earnesst.> > You can't know whether 
> something will run until you run it.
 
Remember: engineered builds. Of Solaris 10 or higher. If stuff gets damaged, 
the system gets flashed.
 
OS and the hardware become nothing but commodities, off-of-the-shelf parts.
 
_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to