patch 9.1.2053: MS-Windows: May use wrong find command
Commit:
https://github.com/vim/vim/commit/2a3b608355f8b4b9a6432dbe52e584368ed43749
Author: Muraoka Taro <
koron....@gmail.com>
Date: Tue Jan 6 10:04:59 2026 +0000
patch 9.1.2053: MS-Windows: May use wrong find command
Problem: If another find.exe derived from findutils is installed on
Windows, unintended behavior will occur. If MSYS2 is installed and
prioritized over the system path, then find.exe derived from
findutils will be launched during build, resulting in an
unintended warning message.
Solution: Specify the absolute path including SYSTEMROOT to launch
find.exe (Muraoka Taro)
closes: #19081
Signed-off-by: Muraoka Taro <
koron....@gmail.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/src/auto/nmake/tools.mak b/src/auto/nmake/tools.mak
index cfeb09ab3..d1672ca9f 100644
--- a/src/auto/nmake/tools.mak
+++ b/src/auto/nmake/tools.mak
@@ -23,7 +23,7 @@ PSFLAGS = -NoLogo -NoProfile -Command
!ERROR The PowerShell program version 3.0 or higher is required for work.
!ENDIF
-!IF ![echo $(COMSPEC) | 1> nul find "cmd.exe"]
+!IF ![echo $(COMSPEC) | 1> nul $(SYSTEMROOT)\System32ind.exe "cmd.exe"]
CMD = $(COMSPEC)
!ELSE
CMD = $(SYSTEMROOT)\System32