Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!asuvax!noao!arizona!andrew From: andrew@cs.arizona.edu (Andrei V. Zaitsev) Newsgroups: comp.unix.questions Subject: Connection between C program and shell Message-ID: <1308@caslon.cs.arizona.edu> Date: 31 Mar 91 05:44:56 GMT Organization: U of Arizona CS Dept, Tucson Lines: 4 How C program can determine in what shell it is being executed ? There are some clumsy ways to solve this problems (for example, analyze the output of ps) but I feel that there must be a more elegant way.