I use the following command to set my LD_LIBRARY_PATH in csh:

setenv LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/home/mydir

but when look at the result, there will always be a "=" symbol at the end of my LD_LIBRARY_PATH even though I didn't type that in.
Who is Participating?
chris_calabreseConnect With a Mentor Commented:
The csh setenv syntax is
  setenv <variable> <value>
with no '=' in between.  Therefore, the proper way of doing this is
  setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:/home/mydir"

The version of csh I tested on will actually complain if you try the syntax you gave.  BTW, it will also complain that LD_LIBRARY_PATH is not set in the line I gave and not set the variable, but I believe that is configurable.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.