csh issues bogus error message

Steven Friedrich freebsd at insightbb.com
Tue Sep 15 02:38:43 UTC 2009

On Monday 14 September 2009 21:22:23 Steve Bertrand wrote:
> Steven Friedrich wrote:
> > I'm working on my .cshrc file, so I have to use csh syntax. I, like most
> > Unix shell programmers, usually steer clear of csh scripts, but
> > obviously, .cshrc requires csh syntax.
> >
> > If I create a file with just a # in it, I get:
> > set: Variable name must begin with a letter.
> >
> > I can change the # to #!/bin/csh
> > but I get the same error message
> >
> > This looks like a csh bug to me 8o)
> What exactly are you trying to do?
> Can you post the entire contents of your .cshrc file?
> ...seems as though there is something missing here.
> Steve
Ok, I'm sorry. My brain farted.

I had set -x in .cshrc, and that's a good line in a BOURNE script 8o)
but in my csh scripts, I can place #!/bin/csh -x
when I need debug.

More information about the freebsd-questions mailing list