On Apr 6, 2006, at 8:47 AM, Emily Jackson wrote:
Thank you. Unfortunately, replacing /sw/bin/init.csh did not eliminate
my problem. Every time I open a terminal window in X11, I get "tcsh: if:
Expression Syntax" and the rest of my .cshrc doesn't get read (no
aliases, no /Developer/Tools in my path). Also, if I execute "source /sw/
bin/init.csh" in Terminal.app, I get the same error. I have eliminated
all if statements in my .cshrc, so it has to be something wrong with
that file. (I tried moving .cshrc out of the way temporarily and did not
get the error, ruling out my .xinitrc.)

Emily

Just a small possibility: do you have a .tcshrc file in your home dir? tcsh looks for .tcshrc and then .cshrc.

If that doesn't do it, then try this:
  * Move your .cshrc to a temporary location for safekeeping
  * Make a new .cshrc that has only the  "source /sw/bin/init.csh"
  * Open a new terminal window

If you still get the error, then it is indeed a flaw in init.csh. Otherwise, I think it's more likely to be a bad interaction between your rc and the Fink init. For example, I often see "tcsh: Word too long." in my own shell when I run init.csh a second time because (I think) fink appends to my already-long CLASSPATH variable. So, in that example neither .cshrc nor init.csh is at fault, but a bad interaction between them. Your problem may be similar.

Chris
--
Chris Dolan, Software Developer, http://www.chrisdolan.net/
Public key: http://www.chrisdolan.net/public.key
vCard: http://www.chrisdolan.net/ChrisDolan.vcf





-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to