View Single Post
Old 11th May 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

I'd reckon a simple test and exec in the initialization files would work for changing roots shell when it's safe to and continuing otherwise.


Under bourne it would probably look some thing like:
Code:
if [ -x /usr/local/bin/foosh ]; then
        exec /usr/local/bin/foosh
else
        echo 'WARNING: foosh not available!'
fi
I never learned how to script the C-Shell, only POSIX-based BourneShell but I'd expect some thing similar is possible in csh/tcsh.


footnote:

As long as it has line editing, redirection, and pipes, I could care less which shell root uses. So I've never bothered to change roots shell on any of my systems ^_^
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.

Last edited by TerryP; 11th May 2008 at 10:42 PM.
Reply With Quote