Login shell?

Keith Gabryelski ag at elgar.UUCP
Mon Oct 24 05:45:04 AEST 1988


In article <842 at philmds.UUCP> leo at philmds.UUCP (Leo de Wit) writes:
>1) When I execl("/bin/sh","-sh",(char *)0); from within a C program I
>also have a shell whose name starts with '-'

Yes, so... Don't do it.

>2) When I exec a shell in my .profile file (for instance if I want my
>own shell instead of /bin/sh or /bin/csh and don't want to bother my
>system manager), this shell doesn't start with '-'.

Bother your system manager or ``execl("/bin/sh","-sh",(char *)0); from
within a C program'' in .profile.

Pax, Keith
-- 
ag at elgar.CTS.COM         Keith Gabryelski          ...!{ucsd, jack}!elgar!ag



More information about the Comp.unix.questions mailing list