tcsh login file-long

Deal

Registered
Somehow, and I don't know how, I have lost my tcsh login file:
/usr/share/init/tcsh/login: No such file or directory.
Because I've done whatever it is I shouldn't have done to lose that file
fink doesn't work.
Now I posted to fink-beginners and got back this:
##
# 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

Since I am a neophyte at terminal and cli I rebooted into classic and used resedit to make the usr folder visible, then I copied the logout file and with bbedit pasted in the above text.
Rebooted into X (1.2) and now I get this:
then: then/endif not found
I still can't use fink and I still don't have any idea what I did to lose that login file to begin with...in X it's invisible.
Now I remember a few years ago when aol opened up the internet
to its' users and all the hubbub (especially in the newsgroups)
it created.
I think OS X has done the same to Unix...just unleashed a horde of unwashed users into your community.
Give us a while...ok?
Most of us WILL catch on.
Thanks
Deal
 
The file you included in the message looks correct, so I'm guessing that when you saved the file with BBEdit, it used Mac style line breaks (return character) as opposed to Unix (newline character); the shell is seeing the entire file as one line, which would definitely cause it to not work.

The easiest way for you to to fix the problem is open the file again with BBEdit and change the style to Unix. I've attached a screen shot to show you how to do this using the popup menus at the top of the BBEdit window.
Then just save the file and you should be fine.
 

Attachments

  • bbeditlinebreak.jpg
    bbeditlinebreak.jpg
    20.3 KB · Views: 15
Back
Top