Connection between C program and shell

Andrei V. Zaitsev andrew at cs.arizona.edu
Sun Mar 31 15:44:56 AEST 1991


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.



More information about the Comp.unix.questions mailing list