Finding where an executable was run

Wietse Venema wswietse at eutrc3.UUCP
Sat May 21 06:38:57 AEST 1988


In article <611 at io.UUCP> md at marvin.UUCP (Mark Dionne) writes:
>I believe system V is different from BSD: argv[0] is always
>the full path name of the executable.

No, with SysV, argv[0] is the command, just as in BSD. You
are confusing MS-DOS with SysV UNIX.
-- 
uucp:	mcvax!eutrc3!wswietse	| Eindhoven University of Technology
bitnet:	wswietse at heithe5	| Dept. of Mathematics and Computer Science
surf:	tuerc5::wswietse	| Eindhoven, The Netherlands.



More information about the Comp.unix.wizards mailing list