Xref: utzoo comp.unix.wizards:8645 comp.sources.d:2146 Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!gatech!ulysses!dgk From: dgk@ulysses.homer.nj.att.com (David Korn[eww]) Newsgroups: comp.unix.wizards,comp.sources.d Subject: Re: Finding where an executable was run from -- a proposal. Summary: ksh passes an absolute pathname for the executable Message-ID: <10310@ulysses.homer.nj.att.com> Date: 21 May 88 03:43:24 GMT References: <67@uvaarpa.virginia.edu> <6800012@cpe> <4527@hoptoad.uucp> <52873@sun.uucp> Organization: AT&T Bell Laboratories, Murray Hill Lines: 8 ksh passes the full pathname of the executable as the first environment variable and names it _. Thus, if the program is run by ksh, genenv("_"); returns a pathname for the executable. Now if everyone would follow this convention the problem would be solved. David Korn ulysses!dgk