|
|
#1 |
|
Triple-A Player
Join Date: Jan 2002
Posts: 69
|
/usr/share/init/tcsh/login
can anyone tell me whats in this directory? i uninstalled a few bits of software and now i get a small error when i start the terminal:
/usr/share/init/tcsh/login: No such file or directory. thanks much ppmax |
|
|
|
|
|
#2 |
|
Triple-A Player
Join Date: Jan 2002
Location: Toronto, Canada
Posts: 185
|
This is the file:
Code:
## # LOGIN FILE # # Wilfredo Sanchez Jr. | tritan@mit.edu # Dec. 5, 1990 # # MIT Project Athena # # ORIGINAL SOURCES: /usr/athena/lib/login # and /usr/prototype_user/.login (ATHENA REL 7.2) ## ## # Set paths ## set path = ( \ ~/bin \ /usr/local/bin /usr/bin /bin \ /usr/local/sbin /usr/sbin /sbin \ ) if ($?version) then if ("$version" =~ tcsh*) then set path = ( "~/bin/${MACHTYPE}-${VENDOR}-${OSTYPE}" $path ) endif endif setenv MANPATH "${HOME}/man:/usr/local/share/man:/usr/share/man" if (-r "${tcsh_initdir}/path") source "${tcsh_initdir}/path" ## # Read user's login ## if (-r "${tcsh_initdir}/login.mine") then source "${tcsh_initdir}/login.mine" endif |
|
|
|
|
|
#3 |
|
Triple-A Player
Join Date: Jan 2002
Posts: 69
|
thanks much--i appreciate you posting this. one last question (guess i should be in the newb's section)
it looks like im probably missing some other files; when i start the shell i get: tcsh_initdir: Undefined variable. can you point me to some docs or a website? im searching thru the fink list server archives now... thx ppmax |
|
|
|
|
|
#4 |
|
Moderator
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
|
Several questions:
Check your ~/.cshrc or ~/.tcshrc and if not right, make a new one with pico or vi and write just this line on it: source /sw/bin/init.csh don't forget to press return at the end. Also, please can you post your .login file. Cheers... |
|
|
|
|
|
#5 |
|
Triple-A Player
Join Date: Jan 2002
Posts: 69
|
thanks sao--
you suggest creating a .cshrc file or .tcshrc file to define another path for fink--but i dont have fink installed. they way i got to this situation was that i had uninstalled fink and 2 or 3 older versions of xdarwin/xfree86. i used osxgnupkg tools to delete the files the xdarwin/xfree86 pkg files installed. everything seems to work fine except for this small warning whenever i fire up the terminal. as for the ~/.login file...i dont have one and dont think ive ever seen this in my home dir. are you asking about my /usr/share/init/tcsh/login file? if so i copied the one supplied below (unix line breaks, space at the end and all) so i believe that part is correct. if i am missing a ~/.login file please post the contents of yours. the issue is that the tcsh_initdir referred to in the /usr/share/init/tcsh/login file is undefined. so where would this be defined? thanks much ppmax |
|
|
|
|
|
#6 | |||||||||||||||||||
|
Major Leaguer
Join Date: Jan 2002
Location: Northern Virginai
Posts: 294
|
Re: /usr/share/init/tcsh/login
There's a lot more in this file than just the login file, and tcsh wan'ts all of it to be there. The shell will work for the most part, but it's going to complain everytime you start it up, but you might find that a few things are not configured within your shell session as you want. If you have access to another system with Mac OS X on it, go to that system and copy that entire directory back here. If not, maybe someone who has a web drop box can post the entire contents of that directory... |
|||||||||||||||||||
|
|
|
|
|
#7 |
|
League Commissioner
Join Date: Jan 2002
Posts: 5,536
|
here's a tarball of the contents of /usr/share/init/tcsh/
http://home.mindspring.com/~bduart/ztcsh.tar download that to disk via the option-click in IE (that is, don't let stuffit expand it) copy that tarball to the root dir / and untar it to it's lovely home Code:
sudo cp /full/path/to/ztcsh.tar / cd / sudo tar -xvf ztcsh.tar sudo rm ztcsh.tar exit |
|
|
|
|
|
#8 |
|
Triple-A Player
Join Date: Jan 2002
Posts: 69
|
thanks for the help all--i rebuilt the /usr/.../tcsh dir and it didnt help.
so i reinstalled everything. good practice for setting up sendmail, mysql, etc again... |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|