Path: utzoo!utgpu!water!watmath!clyde!rutgers!cmcl2!brl-adm!adm!Leisner.Henr@xerox.com From: Leisner.Henr@xerox.com (marty) Newsgroups: comp.unix.questions Subject: How does a program get its path name? Message-ID: <11923@brl-adm.ARPA> Date: 20 Feb 88 22:01:17 GMT Sender: news@brl-adm.ARPA Lines: 10 How does an exec program get the pathname it was execed from if it wants to find out this information? (I'm specifically asking how cc knows to looks at ../lib for the compiler passes). marty ARPA: leisner.henr@xerox.com GV: leisner.henr NS: martin leisner:henr801c:xerox