[comp.unix.internals] login shells

tif@doorstop.austin.ibm.com (Paul Chamberlain) (11/10/90)

In article <24957@adm.BRL.MIL> protin@pica.army.mil (Arthur W. Protin Jr.) writes:
>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 ...

Is there some legitimate reason not to have a user-program
that fork's shells this way (or is there an option to do
it somewhere).  It really bothers me that when I xinit
(or half a dozen or ways) I don't get my full set of
aliases and stuff.  I finally wrote a command called "loginsh"
that execs argv[1] with argv[2] etc. or by default execs $SHELL.
Except that it puts the "-" in front.  Then, I make a few small
modification to my xinit ...

Paul Chamberlain | I do NOT represent IBM.     tif@doorstop, sc30661 at ausvm6
512/838-7008     | ...!cs.utexas.edu!ibmchs!auschs!doorstop.austin.ibm.com!tif