Shell hacking: launch bash from csh
Start bash
like this in your .cshrc
file:
exec bash
Preferably, replace bash
with the full path to bash
.
Also, be careful if you have to run any script written in csh
—if it doesn't use -f
, it will execute your .cshrc
file before running. Since you exec bash
in your .cshrc
, the script probably won't run as intended. Writing scripts in csh
is inadvisable, but I've been in at least one university course that required it.