Thread: add to path
View Single Post
  #5   (View Single Post)  
Old 19th August 2010
s0xxx's Avatar
s0xxx s0xxx is offline
Package Pilot
 
Join Date: May 2008
Posts: 192
Default

Quote:
Originally Posted by TerryP View Post
...
the only time you should be seeing ( or ) in setting a path variable, is if you want to do something like $ PATH="$(pwd)/bin:$PATH"; export PATH.
Or if you're running a csh-like type of shell:
Code:
# csh
# echo $PATH
/sbin:/usr/sbin:/bin:/usr/bin ...                               # shorten for brevity

# set PATH = $PATH /usr/local
set: Variable name must begin with a letter.
# set PATH = ($PATH /usr/local)
# echo $PATH
/sbin:/usr/sbin:/bin:/usr/bin ... /usr/local
#
One could also use "" in stead of a pair of ()'s.
__________________
The best way to learn UNIX is to play with it, and the harder you play, the more you learn.
If you play hard enough, you'll break something for sure, and having to fix a badly broken system is arguably the fastest way of all to learn. -Michael Lucas, AbsoluteBSD
Reply With Quote