Finding where an executable was run from -- a proposal.

David Korn[eww] dgk at ulysses.homer.nj.att.com
Sat May 21 13:43:24 AEST 1988


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



More information about the Comp.unix.wizards mailing list