PDA

View Full Version : /usr/share/init/tcsh/login


ppmax
02-22-2002, 11:16 PM
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

Novajo
02-22-2002, 11:24 PM
This is the file:


##
# 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

ppmax
02-23-2002, 12:54 AM
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

sao
02-23-2002, 04:49 AM
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...

ppmax
02-23-2002, 10:25 AM
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

houchin
02-24-2002, 12:23 PM
Originally posted by ppmax
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.


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...

mervTormel
02-24-2002, 01:03 PM
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


sudo cp /full/path/to/ztcsh.tar /
cd /
sudo tar -xvf ztcsh.tar

sudo rm ztcsh.tar
exit

ppmax
02-25-2002, 10:27 AM
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...