Re: ... error "set: Variable name must begin with a letter."
- From: jagdip <jagdip@xxxxxxxxx>
- Date: Wed, 14 Jul 2010 12:23:01 -0700 (PDT)
On Jul 14, 12:53 pm, "Greg Russell" <gruss...@xxxxxxxxxxx> wrote:
"jagdip" <jag...@xxxxxxxxx> wrote in message
news:fb87dab3-0c2f-4851-85f6-68f703005148@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
i get following error.
how do i troubleshoot?
where is it coming from ?
[root@machine1 ~]# csh
set: Variable name must begin with a letter.
Please keep your Subject: line short ... the body of the post is where your
explanantion belongs.
It's rather inconceivable that you'd want to invoke [t]csh as the root user.
First determine what shell you're *really* invoking:
ls -l `which csh`
lrwxrwxrwx 1 root root 4 May 20 02:11 /bin/csh -> tcsh
Then "man tcsh" and carefully read the "Startup and shutdown" section to see
which files are processed
When the shell is initialized, it's looking for the resources specified
first in /etc/csh.{login,cshrc} and then in ~/.[t]cshrc, then ~/.login etc.
You should carefully examine those files (in the order stated in your [t]csh
man page) for the clearly-stated error of a varaible name not starting with
an alphabetic character.
sorry about long subject line
thank you for your reply
i found out that tcsh runs files under /etc. those files are csh.login
and csh.cshrc
i also runs some *.csh files under /etc/profile.d/ which runs from
inside script csh.cshrc.
how can i pinpoint which line exactly is throwing that error i see
when i try to run csh from command prompt ?
i ran almost all set commands from all scripts which i think run after
i run csh on command prompt and i did not get any error.
how i debug this? please help
.
- Follow-Ups:
- Re: ... error "set: Variable name must begin with a letter."
- From: Greg Russell
- Re: ... error "set: Variable name must begin with a letter."
- References:
- Prev by Date: Re:... error "set: Variable name must begin with a letter."
- Next by Date: Re: ... error "set: Variable name must begin with a letter."
- Previous by thread: Re:... error "set: Variable name must begin with a letter."
- Next by thread: Re: ... error "set: Variable name must begin with a letter."
- Index(es):
Relevant Pages
|