Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!ncar!gatech!emory!arnold From: arnold@emory.uucp (Arnold D. Robbins {EUCC}) Newsgroups: comp.unix.wizards Subject: Re: Finding where an executable was run from -- a proposal. Message-ID: <2920@emory.uucp> Date: 16 May 88 16:50:30 GMT References: <67@uvaarpa.virginia.edu> <6800012@cpe> <4527@hoptoad.uucp> <4687@watdcsu.waterloo.edu> <53285@sun.uucp> Reply-To: arnold@emory.UUCP (Arnold D. Robbins {EUCC}) Organization: Emory University Lines: 9 The convention used by ksh-i is to put the full pathname used to exec a file in the environment variable "_". This makes a lot of sense to me, and seems as good an example of prior art as anything else out there. It is also cleaner than most of the suggestions we've seen so far in this discussion, not requiring any change to the kernel or the C calling conventions. -- Arnold Robbins ARPA, CSNET: arnold@emory.ARPA BITNET: arnold@emory UUCP: { decvax, gatech, }!emory!arnold DOMAIN: arnold@emory.edu (soon) ``csh: just say NO!''