Re: ... error "set: Variable name must begin with a letter."



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
.



Relevant Pages

  • Re: /etc/profile.d scripts
    ... Really it should have a matching partner ending .csh. ... |>> Is there a way to have the users shell switched to bash shell when they log ... |>Specify the shell to be used in the script. ... common denominator Bourne shell, so all the Bourne shells will like ...
    (RedHat)
  • Re: Need a script to convert Uppercase in Lowercasse
    ... Csh is an awful shell. ... >extremely productive with tcsh as my login shell everywhere I have any ...
    (comp.unix.sco.misc)
  • Re: Need a script to convert Uppercase in Lowercasse
    ... Csh is an awful shell. ... | for users because of its history ability, ... OTOH, I have written exactly one csh script in my life, and thousands of ...
    (comp.unix.sco.misc)
  • Re: change rm command
    ... I use csh. ... >> I tried the script your suggested but unfortunately it didn't work. ... > everyone has been giving you scripts for a Bourne-type shell. ... > He who knows, does not speak. ...
    (comp.unix.shell)
  • Re: Input Multiple files to a Script
    ... the number string as 1st argument and filename as 2nd argument.....it ... # START of SCRIPT ... or some BSD shells) to interprete the script with csh. ...
    (comp.unix.shell)