login shells (was Re: UNIX-WIZARDS Digest V11#025)
Paul Chamberlain
tif at doorstop.austin.ibm.com
Sat Nov 10 06:15:53 AEST 1990
In article <24957 at adm.BRL.MIL> protin at 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 at doorstop, sc30661 at ausvm6
512/838-7008 | ...!cs.utexas.edu!ibmchs!auschs!doorstop.austin.ibm.com!tif
More information about the Comp.unix.internals
mailing list