some old system has a comand 'chsh'
which is dedicated to do what you want to do.
m****m 发帖数: 165
2
You need to make sure the bash is installed in your
$HOME/bin/bash (I am sure you know).
If your system have already bash available (I know you have
'cause you can type bash after login), normally it will be
under /bin
Add following lines to your .profile and it will do the job
for you.
if [ -x /bin/bash ]; then
exec /bin/bash
fi
You can change to ksh & csh by this way as well.