http://bugs.winehq.org/show_bug.cgi?id=58507
--- Comment #6 from Stian Low wineryyyyy@gmail.com --- This key piece was missing from the last message which is required for Emacs M-x find-name-dired to work:
(setq shell-file-name "c:/cygwin64/bin/bash.exe")
Write it to ~/.emacs so that future Emacs sessions are automatically mapped to Cygwin environment.
Here's a a more complete list of relevant parts in my ~/.emacs that support mapping Cygwin and MinGW environments:
(setq shell-file-name "c:/cygwin64/bin/bash.exe") (setenv "CYGWIN_HOME" "c:/cygwin64/") (setenv "PATH" (concat "c:/cygwin64/bin;" (getenv "PATH"))) (setq exec-path (append '("c:/cygwin64/bin") exec-path )) (setenv "PATH" (concat "c:/x86_64-15.1.0-release-win32-seh-msvcrt-rt_v12-rev0/mingw64/bin;" (getenv "PATH"))) (setq exec-path (append '("c:/x86_64-15.1.0-release-win32-seh-msvcrt-rt_v12-rev0/mingw64/bin") exec-path ))