Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'How to set your path' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
How to set your path
Authored by: JoeHope on Oct 03, '01 07:47:25PM

I get curly braces in my path variable when I set my path this way.
Is this significant?



[ Reply to This | # ]
Braces in your path
Authored by: serversurfer on Oct 04, '01 02:00:36AM

I am guessing that it is significant, but I can not reproduce this myself to see
what is going wrong. Check the syntax of the above commands, and make sure you
are entering them correctly. If you still get braces in the echo of your path,
post the commands you are using and the resultant echo of your paths.
Copy and paste whatever is in the Terminal in to the post.



[ Reply to This | # ]
My Bad
Authored by: JoeHope on Oct 04, '01 07:42:20PM

Sorry. My attempt had quotes. As a potentially interesting side note,
the braces only appeared when I looked at the environment variable
through "env", and were invisible with "echo".

i.e.

[starone:~] joe% echo $MANPATH
/Users/joe/man:/usr/local/share/man:/usr/share/man:/usr/local/teTeX/man:/usr/local/man:/usr/X11R6/man/:/Applications/lam-6.5.4/man:/usr/local/X11/man
[starone:~] joe% env | grep -A2 MANPATH
MANPATH=/Users/joe/man:/usr/local/share/man:/usr/share/man:/usr/local/teTeX/man:/usr/local/man:/usr/X11R6/man/:/Applications/lam-6.5.4/man:/usr/local/X11/man
[starone:~] joe% setenv MANPATH "{$MANPATH}:/extramanpage/man"
[starone:~] joe% echo $MANPATH
/Users/joe/man:/usr/local/share/man:/usr/share/man:/usr/local/teTeX/man:/usr/local/man:/usr/X11R6/man/:/Applications/lam-6.5.4/man:/usr/local/X11/man:/extramanpage/man
[starone:~] joe% env | grep -A2 MANPATH
MANPATH={/Users/joe/man:/usr/local/share/man:/usr/share/man:/usr/local/teTeX/man:/usr/local/man:/usr/X11R6/man/:/Applications/lam-6.5.4/man:/usr/local/X11/man}:/extramanpage/man



[ Reply to This | # ]
Curly brackets
Authored by: alunap on Oct 06, '01 06:32:50AM

The curly brackets are in the wrong place, it should be "${PATH}" and not "{$PATH}".



[ Reply to This | # ]