a b wrote:
> 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.
Aargh. Just what's so hard about typing `exec tcsh', or even just
`tcsh' if you can't be arsed with all that extra typing, at the # prompt
if you need it ? Oh look:
> alias sur
su root -c "HOME=$home exec /usr/local/bin/tcsh"
>
Saves me all that typing when I su. I guess I just don't understand why
people think it's such a big deal. The crusty old Bourne shell seems to
work just fine for me for the odd emergency when I need to log in as
root. I honestly can't see the problem people are trying to solve. "I
login as root and can't use command line editing" ? If you're logging
in as root you better know how to type tcsh, or ksh, or bash, or zsh,
... (I always liked `rc' myself, but it didn't seem to take off.)
Rob
--
E-Mail: [EMAIL PROTECTED] PHONE: +44 24 7652 3037
Rob McMahon, IT Services, Warwick University, Coventry, CV4 7AL, England
_______________________________________________
opensolaris-discuss mailing list
[email protected]