Login (unique) problems with termin
valsee at qat.UUCP
valsee at qat.UUCP
Fri Dec 29 06:37:00 AEST 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 at techsup.lonestar.org
More information about the Comp.unix.wizards
mailing list