Wrong path to init.csh which is also missing - how to correct?

Hello,

when I try to invoke csh, I get the error

mac:~ me$ csh
csh: /sw/bin/init.csh: No such file or directory.
[mac:~] me%


I understand that my fink installation (which I have deleted long ago) did alter this. Problem is, I have no idea how to change it back so that csh will no longer look there.

BTW, running

mac:~ me$ find / -name "init.csh" -print
mac:~me$


did not yield any results.

Installation scripts relying on csh will stop because of the error 😟 So what am I to do? Any help would be really appreciated!

Regards
Jim

AiPB 15'' 1,25 GHz, Mac OS X (10.4.8)

Posted on Mar 10, 2007 2:09 AM

Reply
5 replies

Mar 10, 2007 9:39 PM in response to Jim Knopf

You should already have /bin in your path. echo $path to check. You may want to take /sw/bin or /sw out of your path if it's there.

To set your default shell to csh, open up NetInfo Manager and under users/USERNAME/ set the shell property to /bin/csh.

My .cshrc file is there but its blank. I do have a csh.cshrc and a csh.login file in /etc. My csh.login file sets the path.


PowerBook G4 Mac OS X (10.4.8) MacBook Pro

Mar 11, 2007 12:27 PM in response to b3av1s

Fink puts the line

source /sw/bin/init.(c)sh

into your shell's .whatever_rc file. That in turn sets various environment variables, including the path.

If you get rid of fink, your .whatever_rc file returns the above-quoted error when it can't find the file.

A better way would be for them to test for the presence of that file, and if it exists, then source the file, otherwise, do nothing.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Wrong path to init.csh which is also missing - how to correct?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.