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

Dan Gohman gohman at apple.com
Tue Jul 28 14:50:52 PDT 2009


On Jul 28, 2009, at 3:47 AM, Benjamin Kramer wrote:


> 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%.
>
> <programm-path-sh.patch>

Ok, this looks good to me, please commit!

Dan




More information about the llvm-commits mailing list