Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!aplcen!haven!adm!news From: protin@pica.army.mil (Arthur W. Protin Jr.) Newsgroups: comp.unix.internals Subject: Re: UNIX-WIZARDS Digest V11#025 Message-ID: <24957@adm.BRL.MIL> Date: 7 Nov 90 22:25:40 GMT Sender: news@adm.BRL.MIL Lines: 22 in UNIX-WIZARDS Digest V11#025 <9011070545.aa07038@SEM.BRL.MIL> ihor.j.kinal writes: > QUESTION: is /etc/profile really executed upon login under the ksh, > assuming the user has ksh as the login shell?? If I want > to define a GLOBAL alias for everyone can I do it in /etc/profile? > [To answer my own question, is I don't think so]. ANSWER: That is exactly what the man page for ksh says! "If the shell is invoked by \fIexec\fR(2), and the first character of the argument zero (\fB$0\fR) is -, then the shell is assumed to be a \fIlogin\fR shell and commands are read from \fB/etc/profile\fR and then from either \fB.profile\fR in the current directory or \fB$HOME/.profile\fR, if either file exists." And that is exactly what it does on properly functioning systems! WHEN IN DOUBT: Read the Fine Manual. WHEN YOU SPOUT: Quote the Fine Manual. Arthur Protin These are my personal views and do not reflect those of my boss or this installation.