On Wed, 12 Feb 2025, Jeremy Drake via Cygwin-patches wrote:

> It was *supposed* to not return the second one.  Maybe I broke it when
> trying to break out of the loop early...  I will test this scenario and
> see why it doesn't work as expected.

Yeah, I never actually looked at how posix_sorted was sorted.  It's sorted
by length first, then by strcmp.  This was probably a premature
optimization anyway.  conv_to_posix_path doesn't try to bail early, it
just continues, and that's going to be a much more common code path than
this...

Reply via email to