|
#1
| |||
| |||
| How to setenv on tcsh?
Hi I want to add to my PATH. I tried setenv PATH=$PATH:/usr/bin It tells me there is a "bad modifier (/). Can someone help? Thanx David
__________________ David Armour Life is grand. G5 replace the Dell - oh what heaven!! |
|
#2
| ||||
| ||||
|
Get rid of the = symbol like so setenv PATH $PATH:/usr/bin |
|
#3
| ||||
| ||||
| Quote:
i tried this as you stated, and got the same error as above.
__________________ 17" of PowerBook love... |
|
#4
| ||||
| ||||
|
Try: set path=($path /usr/bin) |
|
#5
| |||
| |||
|
setenv PATH "/bin:/sbin:/usr/bin:/usr/sbin:/usr/x11R6/bin"
|
|
#6
| |||
| |||
|
When I was using tcsh in jaguar this is the line I had: setenv PATH /usr/X11R6/bin:/usr/local/bin:$PATH |
|
#7
| |||
| |||
|
well this always worked for me and still does: set path = ( $path /usr/local/bin ) or whatever directory you wanna add. oh yea dont forget to rehash after you used this command. Also if you want to make it permanent add it to your /.tcshrc file. Just open it (vi ~/.tcshrc or any other editor) then add the set path line, save the file, and rehash or open another terminal window. (this is for tcsh shell only for bash or sh it would be slightly diffrent) |
|
#8
| |||
| |||
|
Hey, I got the same error in my bash/csh shell. This is one of the solutions to it. setenv PATH $PATH":$HOME/bin" |
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| bash rules, tcsh lacks... except for this... | cello | Unix & X11 | 4 | November 7th, 2002 11:16 AM |
| why doesn't curl work in tcsh? | kegger64 | Unix & X11 | 0 | September 21st, 2002 05:41 PM |
| strange tcsh behavior | gslobber | Mac OS X System & Mac Software | 6 | February 12th, 2002 10:07 AM |
| tcsh login file-long | Deal | Mac OS X System & Mac Software | 1 | January 21st, 2002 09:57 AM |
| tcsh is broken | Tom Hackett | Mac OS X System & Mac Software | 2 | December 5th, 2000 11:59 PM |