Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!wuarchive!texbell!merch!cpe!techsup!qat!valsee From: valsee@qat.UUCP Newsgroups: comp.unix.wizards Subject: Re: Login (unique) problems with termin Message-ID: <1400001@qat> Date: 28 Dec 89 19:37:00 GMT References: <1471@lakesys.lakesys.com> Lines: 23 Nf-ID: #R:lakesys.lakesys.com:1471:qat:1400001:000:1017 Nf-From: qat.UUCP!valsee Dec 28 13:37:00 1989 > > Hmph.. I've talked to the local unix guru (well...) and he's had the exact > > same problem and it doesn't work. > > I know UNIX and terms don't mix (polar and nonpolar?) very well, but when > > it works from login and not from executing the .login or .profile file, > > something is screwed up. > > [...] > The problem is either you .profile does not set the environment variable > if it is already set or you are not "sourcing" the .profile. By sourcing > the .profile I mean typing ". .profile" as opposed to ".profile". (This > asumes you are running a version of unix that is > V6 ). > > If you don't source the .profile, it runs as a sub-shell and sets the > environment variables in the sub-shell, not your login shell. As soon as > the sub-shell exits, those variables are gone. > yup. as a note, use the "source" statement in csh to accomplish the same thing in that shell, i.e. "source .login" instead of ".login". -- valerie see ..texbell!techsup!qat!valsee seev@techsup.lonestar.org