4.2/sysV difference

Michael Stolarchuk mts at cosivax.UUCP
Tue Jan 14 04:38:18 AEST 1986


I was recently debugging a routine using "execvp".  The bug was actually
a difference between system V and 4.2.  I don't understand the difference,
and hope someone in the field can explain to me why the two systems do the
"execvp" differently.

On 4.2 systems the environment variable "PATH" used by "execvp"
to locate the directories to scan.  The path elements (directories)
are separated by ':'.  They can also be separated by '-'.

If path=(/bin /usr/bin /usr/local ... /usr/new test-test), and 
executable file in test-test, even when csh finds the executable,
a small test program doing execvp for the file doens't find it.

It makes sense to me there is a reason for the termination of the
element by '-', but I can't figure out what the reason is.

--------------------
Empty-S, in Michigan.
--------------------



More information about the Comp.unix.wizards mailing list