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

Benjamin Kramer benny.kra at googlemail.com
Tue Jul 28 03:42:14 PDT 2009


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/cfe-commits/attachments/20090728/64fe42de/attachment.ksh>


More information about the cfe-commits mailing list