Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > How to set shell to tcsh in Panther?

How to set shell to tcsh in Panther?
Thread Tools
kelesh
Dedicated MacNNer
Join Date: Mar 2003
Location: boston, ma
Status: Offline
Reply With Quote
Nov 4, 2003, 11:32 PM
 
Hey, I like tcsh more than bash. I told terminal to run /bin/tcsh when it starts up, and sure enough tcsh starts, but when I run screen:

[powerbook:~] kelesh% screen

it gives me bash prompts:

powerbook:~ kelesh$

how do I make tcsh the default shell?
     
oooohan
Fresh-Faced Recruit
Join Date: Sep 2003
Location: Cambridge, MA
Status: Offline
Reply With Quote
Nov 5, 2003, 12:05 AM
 
You can change your default shell in Netinfo Manager.
     
proton
Senior User
Join Date: Nov 2000
Status: Offline
Reply With Quote
Nov 5, 2003, 12:05 AM
 
Use chsh to change your shell. You'll end up in a vi window ready to edit your shell details, you might want to set EDITOR to something else if you're not comfortable with vi.

Try env EDITOR="/usr/bin/pico" chsh for example.

- proton
     
kelesh  (op)
Dedicated MacNNer
Join Date: Mar 2003
Location: boston, ma
Status: Offline
Reply With Quote
Nov 5, 2003, 01:59 AM
 
grrrr... i changed my shell, and it shows changed in both chsh and in netinfo manager, but starting screen still brings up bash.... what's going on here?
     
utidjian
Senior User
Join Date: Jan 2001
Location: Mahwah, NJ USA
Status: Offline
Reply With Quote
Nov 5, 2003, 07:37 AM
 
Originally posted by kelesh:
grrrr... i changed my shell, and it shows changed in both chsh and in netinfo manager, but starting screen still brings up bash.... what's going on here?
Hmm.. wierd. Look at your dotfiles in your home folder.

ls -a

I am not sure that tcsh requires one but often there is a .profile or .login file or whatever and that could be setting or re-setting your shell for you. All of those files should be plain text. Also look at /etc/shells. /bin/tcsh must be in that list of allowable shells.
-DU-...etc...
     
rkt
Mac Enthusiast
Join Date: Oct 2000
Status: Offline
Reply With Quote
Nov 5, 2003, 09:30 AM
 
Originally posted by kelesh:
grrrr... i changed my shell, and it shows changed in both chsh and in netinfo manager, but starting screen still brings up bash.... what's going on here?
there's usually a line in the file ~/.screenrc that tells screen which shell to use when starting new instances...

mine reads:
shell -$SHELL

(ie. create a new login shell each time)

if it read:
shell -/bin/bash

...you'll get a bash shell, no matter what the default shell on your account is.
     
Wevah
Senior User
Join Date: Nov 2001
Location: State of Denial
Status: Offline
Reply With Quote
Nov 5, 2003, 09:59 AM
 
What about Terminal -> Preferences ?
[Wevah setPostCount:[Wevah postCount] + 1];
     
kelesh  (op)
Dedicated MacNNer
Join Date: Mar 2003
Location: boston, ma
Status: Offline
Reply With Quote
Nov 6, 2003, 08:20 AM
 
Originally posted by Wevah:
What about Terminal -> Preferences ?
yeah that's what i changed first to get tcsh instead of bash, and it works, except when i start screen it gives me bash prompts.

utidjian: no such files for me

rkt: THANKS!! adding that line to my .screenrc did the trick.

still no idea why it was running bash before... but at least it does what i want now :/
     
Boondoggle
Grizzled Veteran
Join Date: May 1999
Location: Seattle
Status: Offline
Reply With Quote
Nov 6, 2003, 02:33 PM
 
i don't have a ~/.screenrc file
1.25GHz PowerBook


i vostri seni sono spettacolari
     
Wevah
Senior User
Join Date: Nov 2001
Location: State of Denial
Status: Offline
Reply With Quote
Nov 8, 2003, 09:37 PM
 
Originally posted by Boondoggle:
i don't have a ~/.screenrc file
...Make one!
[Wevah setPostCount:[Wevah postCount] + 1];
     
suthercd
Senior User
Join Date: Oct 2000
Location: Midwest
Status: Offline
Reply With Quote
Nov 9, 2003, 11:45 AM
 
Did you logout/login after making the changes to Netinfo?

Craig
     
monodromy
Fresh-Faced Recruit
Join Date: Dec 2000
Status: Offline
Reply With Quote
Nov 10, 2003, 03:54 AM
 
"grrrr... i changed my shell, and it shows changed in both chsh and in netinfo manager, but starting screen still brings up bash.... what's going on here?"

I had the same experience. Changing the
shell in Terminal Preferences solved the
problem.
     
   
 
Forum Links
Forum 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 On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 11:47 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,