Operating System - HP-UX
1761374 Members
3222 Online
108901 Solutions
New Discussion

how to add variables into this file?.cshrc profile.

 
SOLVED
Go to solution
Peter Nikitka
Honored Contributor

Re: how to add variables into this file?.cshrc profile.

Hi,

I have to correct Mike's posting:
- The 'path' variable in (t)csh is an array (so it seems to be a local variable, it is handled specially)
- Setting arrays in such shells is done in such a way:
set var=(ele1 ele2 ele3)
So you'll have do substitute the colons by whitespace:
set path=($path /more/to/path)

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"