LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   have my .cshrc or .login invoke bash (http://www.linuxquestions.org/questions/linux-newbie-8/have-my-cshrc-or-login-invoke-bash-559673/)

mattie_linux 06-06-2007 01:27 PM

have my .cshrc or .login invoke bash
 
hello.
please excuse my English.

I want to use bash as much as possible. But instead of changing my default shell in /etc/passwd, because not all my machines have bash, I want to *csh* as my default shell and do this:

Have my .cshrc to *check* for bash, and then if it exists, invoke it.
I am kind of newbie. Can somebody tell me if this is possible?

thanks you,
Mattie

forrestt 06-06-2007 03:16 PM

You will need to do it in your .login, I'm not much of a csh programmer, so I'll leave that up to you. However, if you invoke a shell from within a shell, you will need to log out twice.


All times are GMT -5. The time now is 02:17 AM.