Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!orstcs!ogicse!ucsd!swrinde!zaphod.mps.ohio-state.edu!wuarchive!uunet!cadence!usenet From: mikel@cadence.cadence.com Newsgroups: comp.unix.internals Subject: How to know your current shell from C code Message-ID: <1990Sep11.164436.9592@cadence.com> Date: 11 Sep 90 16:44:36 GMT Sender: usenet@cadence.com (USENET News) Distribution: usa Organization: Cadence Design Systems, Inc. Lines: 4 Recently I had a UNIX question. I have a c program and I want to know which shell(sh,csh,ksh) is my parent. Is there any way to do this? Environment variable is not acceptable.