Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> Ah, got it. Makes sense. We do searches for finding our own path, but
> you can argue that this predictable --- we know we are running so the
> binary must be somewhere. :-) However, the version checking we do now
> is a little non-predictable because if we find a binary of the wrong
> version, we keep looking in the path.
Hm? I see no version checks in FindExec. It looks to me like the code
is just trying to ensure that it finds the same file that the shell
would have found.
regards, tom lane