andrew@cs.arizona.edu (Andrei V. Zaitsev) (03/31/91)
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.
gwyn@smoke.brl.mil (Doug Gwyn) (04/01/91)
In article <1308@caslon.cs.arizona.edu> andrew@cs.arizona.edu (Andrei V. Zaitsev) writes: >How C program can determine in what shell it is being executed ? If the shell does its job properly, there should be NO WAY TO TELL. Why do you ask?