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 > Mac OS X > .tcshrc in Panther (7B80) not executed

.tcshrc in Panther (7B80) not executed
Thread Tools
Fresh-Faced Recruit
Join Date: Nov 2000
Status: Offline
Reply With Quote
Sep 30, 2003, 05:24 PM
 
the ~/.tcshrc file in Panther (I tried 7b21 and 7b80) it is not executed:

I tried to put some 'alias' in it and a 'setenv PATH ${PATH}:....' line, but nothing !
I quitted and relauched the Terminal and it acts as there was NO ".tcshrc".

I tried to put the same lines in a ~/.cshrc and in a ~/.login...but still nothing

anyone can help ?
     
Dedicated MacNNer
Join Date: May 2003
Location: Santa Barbara
Status: Offline
Reply With Quote
Sep 30, 2003, 05:29 PM
 
Isn't bash the default shell in Panther?
     
Zeno C  (op)
Fresh-Faced Recruit
Join Date: Nov 2000
Status: Offline
Reply With Quote
Sep 30, 2003, 05:38 PM
 
yeah, you're right (it's bash)

but even moving those lines to a .bashrc doesNOT work ....

...why? I suppose in bash the 'alias' and 'setenv PATH' command are not supported, right?
     
Mac Elite
Join Date: Mar 2001
Location: Provo, UT
Status: Offline
Reply With Quote
Sep 30, 2003, 05:45 PM
 
Bash has a slightly different syntax that csh/tcsh.
     
Dedicated MacNNer
Join Date: May 2003
Location: Santa Barbara
Status: Offline
Reply With Quote
Sep 30, 2003, 05:47 PM
 
Here's a thread on converting your .tcshrc to .bashrc.
     
Dedicated MacNNer
Join Date: Jul 2002
Location: Norway
Status: Offline
Reply With Quote
Oct 1, 2003, 05:07 AM
 
Should we change from Bash to tcsh on OS X 10.3 ? I've only used tcsh, and as a simple shell user, using something else would be like starting all over again. Or not ??
Mac Pro 2 x 2.8 GHz Quad-Core, Nvidia GeForce 8800GT
     
Dedicated MacNNer
Join Date: May 2003
Location: Santa Barbara
Status: Offline
Reply With Quote
Oct 1, 2003, 04:11 PM
 
Originally posted by Johnny_B:
Should we change from Bash to tcsh on OS X 10.3 ? I've only used tcsh, and as a simple shell user, using something else would be like starting all over again. Or not ??
I wouldn't see why you would have to change. It's a personal preference. In the Panther Terminal.app Preferences change "Execute this command" to /bin/tcsh.
     
Forum Regular
Join Date: Jul 2002
Location: Australia
Status: Offline
Reply With Quote
Oct 2, 2003, 05:39 AM
 
Or run /Applications/Utilties/NetInfoManager.app and change your shell in /users/<username> to change your login shell. Or use 'niutil' to change it.

Kind of related - is Panther under NDA or anything? If not, does the bash setup have any kind of init setup like tcsh, where you can put things like aliases.mine, environment.mine and the like in ~/Library/init/tcsh or equivalent?
     
Grizzled Veteran
Join Date: Nov 2001
Location: Oregon
Status: Offline
Reply With Quote
Oct 9, 2003, 01:55 AM
 
From man bash:
Code:
When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads and executes commands from the file /etc/profile, if that file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable. The --noprofile option may be used when the shell is started to inhibit this behav- ior. When a login shell exits, bash reads and executes commands from the file ~/.bash_logout, if it exists. When an interactive shell that is not a login shell is started, bash reads and executes commands from ~/.bashrc, if that file exists. This may be inhibited by using the --norc option. The --rcfile file option will force bash to read and execute commands from file instead of ~/.bashrc.
     
   
Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:50 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2