LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   csh - quick question (https://www.linuxquestions.org/questions/linux-newbie-8/csh-quick-question-4175445771/)

mpc8250 01-15-2013 07:50 PM

csh - quick question
 
Hi All

I don't know what's wrong with the .cshrc file but every time we log in we get

Bad : modifier in $ (/).
[me@host ~]$

Could the experts offer their tips ?

Thanks you very much

shivaa 01-15-2013 08:50 PM

It PATH setting problem, certainly because of setenv.

So once check your PATH variable, and re-define it as:
Code:

~$ echo $PATH
~$ setenv PATH /path/to/dir:$PATH

Each directory seperated by a ":". To make it permanant, make same changes in .cshrc file.

mpc8250 01-16-2013 07:18 PM

Hi Shivva

Thanks for responding.I tried it; it didnt work; even sourcing it didnt make a difference.
Any more tips ?

Thanks

divyashree 01-16-2013 09:18 PM

Quote:

Originally Posted by mpc8250 (Post 4870988)
Hi All

I don't know what's wrong with the .cshrc file but every time we log in we get

Bad : modifier in $ (/).
[me@host ~]$

Could the experts offer their tips ?

Thanks you very much

post the content of .cshrc file.

shivaa 01-16-2013 10:03 PM

This is actually your PATH variable is set using setenv cmd, somewhere in some shell initialization file.
This could be .cshrc, but any other file as well. Once search for this PATH entry in following files, as:-
Code:

~$ grep "setenv" .cshrc .tcshrc .login .profile
Also check your shell:-
Code:

~$ echo $SHELL

jpollard 01-17-2013 04:16 AM

I think you need to show the contents of your .cshrc file in a code block (and maybe anything it includes, but I think it is a problem only in the .cshrc). Anything else is just guessing at what may be wrong.


All times are GMT -5. The time now is 01:05 PM.