patch 9.1.2053: MS-Windows: May use wrong find command

Commit: 
https://github.com/vim/vim/commit/2a3b608355f8b4b9a6432dbe52e584368ed43749
Author: Muraoka Taro <[email protected]>
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 <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

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)\System32ind.exe "cmd.exe"]
 CMD = $(COMSPEC)
 !ELSE
 CMD = $(SYSTEMROOT)\System32

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1vd45e-00GkZS-Ve%40256bit.org.

Raspunde prin e-mail lui