image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
LinkBack Thread Tools
  #1  
Old November 16th, 2003, 11:27 PM
Registered User
 
Join Date: Sep 2000
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
dlarmour is on a distinguished road
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!!
Reply With Quote
  #2  
Old November 17th, 2003, 09:00 AM
Viro's Avatar
Registered User
 
Join Date: Nov 2003
Location: Oxford, UK
Posts: 2,494
Thanks: 0
Thanked 2 Times in 2 Posts
Viro will become famous soon enoughViro will become famous soon enough
Get rid of the = symbol like so

setenv PATH $PATH:/usr/bin
Reply With Quote
  #3  
Old November 17th, 2003, 10:59 AM
quiksan's Avatar
awesomer...
 
Join Date: Oct 2002
Location: Strongbadia (Denver, CO)
Posts: 539
Thanks: 0
Thanked 0 Times in 0 Posts
quiksan is on a distinguished road
Quote:
Originally Posted by Viro
Get rid of the = symbol like so

setenv PATH $PATH:/usr/bin

i tried this as you stated, and got the same error as above.
__________________
17" of PowerBook love...
Reply With Quote
  #4  
Old November 17th, 2003, 01:22 PM
hazmat's Avatar
Rusher of Din
 
Join Date: Oct 2001
Location: Brooklyn, NY
Posts: 1,803
Thanks: 0
Thanked 0 Times in 0 Posts
hazmat is on a distinguished road
Try:

set path=($path /usr/bin)
Reply With Quote
  #5  
Old November 17th, 2003, 10:53 PM
Registered User
 
Join Date: Nov 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
ericl is on a distinguished road
setenv PATH "/bin:/sbin:/usr/bin:/usr/sbin:/usr/x11R6/bin"
Reply With Quote
  #6  
Old November 18th, 2003, 12:17 AM
Registered User
 
Join Date: Jan 2003
Location: Omaha, Ne
Posts: 215
Thanks: 0
Thanked 0 Times in 0 Posts
naodx is on a distinguished road
When I was using tcsh in jaguar this is the line I had:

setenv PATH /usr/X11R6/bin:/usr/local/bin:$PATH
Reply With Quote
  #7  
Old November 19th, 2003, 03:14 PM
*pity da fool
 
Join Date: Sep 2003
Location: Pergatory
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
MisterK is on a distinguished road
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)
Reply With Quote
  #8  
Old August 25th, 2009, 11:26 AM
Registered User
 
Join Date: Aug 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
lavixu is on a distinguished road
Hey,
I got the same error in my bash/csh shell.
This is one of the solutions to it.
setenv PATH $PATH":$HOME/bin"
Reply With Quote
Reply

Bookmarks

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump

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


All times are GMT -5. The time now is 02:23 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.