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 > Developer Center > setting the path for tcsh

setting the path for tcsh
Thread Tools
Fresh-Faced Recruit
Join Date: Apr 2001
Location: Danbury,CT USA
Status: Offline
Reply With Quote
Apr 11, 2001, 08:07 PM
 
I'm stumped.

I need to set a path for tcsh for X-Windows, so I created ~/.cshrc in emacs
and added the line set path=($path /usr/X11R6/bin)

Well, it didn't work. I scoured the man pages ... and came to the conclusion that I did the right thing. I rebooted a ton of times, to no avail.

Please help!
     
Admin Emeritus
Join Date: Oct 2000
Location: Boston, MA
Status: Offline
Reply With Quote
Apr 11, 2001, 09:09 PM
 
What do you mean by "path for tcsh for X-Windows?"

THe .cshrc file is the right file (and you have the right syntax), but what are you trying to do?
"Against stupidity, the gods themselves contend in vain" (Schiller)
     
Professional Poster
Join Date: Jan 2000
Status: Offline
Reply With Quote
Apr 12, 2001, 12:07 AM
 
I don't think that will work because you are trying to set the path to whatever path is with the X11 bin added on. But if that's the only line then the path wont be set to anything at all when you try to add /usr/X11R6/bin to it.

The better thing to do is copy the system cshrc file to your home and add the above line to it. I can't remember where the system wide cshrc file is though.
     
Zim
Senior User
Join Date: Apr 2001
Location: Cary, NC
Status: Offline
Reply With Quote
Apr 12, 2001, 08:18 AM
 
Just type "set" in your shell window, and you'll see

tcsh_initdir /usr/share/init/tcsh

in that you'll find

total 80
drwxr-xr-x 10 root wheel 296 Feb 24 03:54 ./
drwxr-xr-x 3 root wheel 58 Feb 24 03:54 ../
-r--r--r-- 1 root wheel 952 Feb 16 22:48 README
-r--r--r-- 1 root wheel 892 Feb 16 22:48 aliases
-r--r--r-- 1 root wheel 9366 Feb 16 22:48 completions
-r--r--r-- 1 root wheel 433 Feb 16 22:48 environment
-r--r--r-- 1 root wheel 695 Feb 16 22:48 login
-r--r--r-- 1 root wheel 395 Feb 16 22:48 logout
-r--r--r-- 1 root wheel 1938 Feb 16 22:48 rc
-r--r--r-- 1 root wheel 2400 Feb 16 22:48 tcsh.defaults

Mike
     
   
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:03 PM.
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