http://bugs.winehq.org/show_bug.cgi?id=58507
--- Comment #5 from Stian Low wineryyyyy@gmail.com --- As final wrap-up with a solution to the emacs side bugs:
This form of find works for Emacs eshell: find . ( -iname *.exe ) -exec ls -ld {} ;
It is supported by: SET CYGWIN_HOME=c:\cygwin64 SET PATH=%CYGWIN_HOME%\bin;%PATH%
c:/cygwin64 [255] $ which find c:/cygwin64/bin/find.exe
Cygwin's find supports Emacs M-x find-name-dired which provides path list buffer used to conveniently navigate a file system.
For future reference here's some results of eshell find:
c:/cygwin64 $ find . ( -iname *.exe ) -exec ls -ld {} ; Cygwin WARNING: Couldn't compute FAST_CWD pointer. This typically occurs if you're using an older Cygwin version on a newer Windows. Please update to the latest available Cygwin version from https://cygwin.com/. If the problem persists, please see https://cygwin.com/problems.html
-rwxr-xr-x+ 1 DEB+any DEB+None 53779 Jul 16 2023 ./bin/addftinfo.exe -rwxr-xr-x+ 1 DEB+any DEB+None 36883 Jul 14 2022 ./bin/arch.exe -rwxr-xr-x+ 3 DEB+any DEB+None 108563 Mar 2 2023 ./bin/ash.exe -rwxr-xr-x+ 1 DEB+any DEB+None 55827 Jul 14 2022 ./bin/b2sum.exe -rwxr-xr-x+ 1 DEB+any DEB+None 42003 Jul 14 2022 ./bin/base32.exe -rwxr-xr-x+ 1 DEB+any DEB+None 41491 Jul 14 2022 ./bin/base64.exe -rwxr-xr-x+ 1 DEB+any DEB+None 36371 Jul 14 2022 ./bin/basename.exe -rwxr-xr-x+ 1 DEB+any DEB+None 50195 Jul 14 2022 ./bin/basenc.exe -rwxr-xr-x+ 2 DEB+any DEB+None 854035 Jan 23 2024 ./bin/bash.exe
Luckily the FAST_CWD doesn't break Emacs M-x find-name-dired either. Here's the buffer produced by Emacs M-x find-name-dired which supports actions per item consistent with Linux and Windows.
c:/cygwin64/: find . ( -iname *.exe ) -exec ls -ld {} ; Cygwin WARNING: Couldn't compute FAST_CWD pointer. This typically occurs if you're using an older Cygwin version on a newer Windows. Please update to the latest available Cygwin version from https://cygwin.com/. If the problem persists, please see https://cygwin.com/problems.html
-rwxr-xr-x+ 1 DEB+any DEB+None 53779 Jul 16 2023 bin/addftinfo.exe -rwxr-xr-x+ 1 DEB+any DEB+None 36883 Jul 14 2022 bin/arch.exe -rwxr-xr-x+ 3 DEB+any DEB+None 108563 Mar 2 2023 bin/ash.exe -rwxr-xr-x+ 1 DEB+any DEB+None 55827 Jul 14 2022 bin/b2sum.exe -rwxr-xr-x+ 1 DEB+any DEB+None 42003 Jul 14 2022 bin/base32.exe -rwxr-xr-x+ 1 DEB+any DEB+None 41491 Jul 14 2022 bin/base64.exe
So far FAST_CWD seems largely be ignorable as a red herring of Cygwin integration problems.