Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!husc6!uwvax!rutgers!ucsd!ucsdhub!jack!elgar!ag From: ag@elgar.UUCP (Keith Gabryelski) Newsgroups: comp.unix.questions Subject: Re: Login shell? Message-ID: <11@elgar.UUCP> Date: 23 Oct 88 19:45:04 GMT References: <314@uplog.se> <842@philmds.UUCP> Reply-To: ag@elgar.UUCP (Keith Gabryelski) Organization: Elgar Corporation, San Diego, CA Lines: 16 In article <842@philmds.UUCP> leo@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@elgar.CTS.COM Keith Gabryelski ...!{ucsd, jack}!elgar!ag