Subject: | Win32::Job->spawn doesn't search in last PATH entry |
If the first argument to Win32::Job->spawn doesn't have path separators, it is supposed to search the PATH looking for the executable. However, it won't search in the last PATH entry if the PATH doesn't end with a ';'.
The problem is the use of "strchr(curr, ';');" in Job.xs. It returns a null pointer when the search value isn't found, and this case isn't handled.