Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-06-2007, 01:27 PM   #1
LQ Newbie
Registered: May 2005
Posts: 15

Rep: Reputation: 0
have my .cshrc or .login invoke bash

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,

Last edited by mattie_linux; 06-06-2007 at 01:50 PM.
Old 06-06-2007, 03:16 PM   #2
Senior Member
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
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.


bash, cshrc, linux, login, passwd, script, shell

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where is .cshrc? johnpaulodonnell Linux - Newbie 4 05-30-2008 06:59 PM
problem with source .cshrc xrin Linux - Distributions 1 02-13-2007 05:25 AM
Suse 10.0 .cshrc setup munichtexan SUSE / openSUSE 1 01-19-2006 12:11 PM
.login, .bashrc or .cshrc ??? tuananhbirm Linux - General 1 01-20-2005 09:44 AM
cannot find .cshrc , please help slice4e Linux - General 4 05-12-2003 01:38 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:53 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration