LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
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

Last edited by mattie_linux; 06-06-2007 at 01:50 PM.
 
Old 06-06-2007, 03:16 PM   #2
forrestt
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.
 
  


Reply

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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:51 PM.

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