[llvm-commits] [patch] make Program::FindProgramByName not look in "." unless it's in $PATH

Benjamin Kramer benny.kra at googlemail.com
Tue Jul 28 03:47:05 PDT 2009


Sorry, I've sent this to the wrong list.

Dan Gohman writes:
> The traditional behavior of sh(1) and friends is to use the given
> path verbatim if it contains any slashes, not just if it's
> absolute.

Here's a patch which tries to match that behavior. I'm not touching
windows though, cmd.exe assumes that "." is always in %PATH%.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: programm-path-sh.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090728/db9eb515/attachment.ksh>


More information about the llvm-commits mailing list