LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-15-2013, 08:50 PM   #1
mpc8250
LQ Newbie
 
Registered: Jan 2013
Posts: 7

Rep: Reputation: Disabled
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
 
Old 01-15-2013, 09:50 PM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
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.

Last edited by shivaa; 01-15-2013 at 09:59 PM. Reason: Code error rectified
 
Old 01-16-2013, 08:18 PM   #3
mpc8250
LQ Newbie
 
Registered: Jan 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi Shivva

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

Thanks
 
Old 01-16-2013, 10:18 PM   #4
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,362

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by mpc8250 View Post
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.
 
Old 01-16-2013, 11:03 PM   #5
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
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
 
Old 01-17-2013, 05:16 AM   #6
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,604

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Real quick iptables question (I mean real quick) sir-lancealot Linux - Networking 1 08-25-2010 09:41 PM
Just A Quick Question robertneville777 Linux - Certification 9 03-21-2009 04:29 AM
Quick question Linux_n00b_57 Linux - Newbie 2 03-13-2006 06:20 PM
Question Concerning ISO's and one quick question. evrae Linux - Software 2 06-21-2004 04:53 AM
samba smb.config question (quick question) TheDOGG Linux - Networking 1 03-02-2004 08:19 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration