David, There is a Reddit thread on this topic that might be useful to you.
https://www.reddit.com/r/emacs/comments/4vxoug/emacs_on_windows_10_anniversary_update/?st=irp0m7sz&sh=6144bb43 >From what I've been able to glean from the Microsoft blog posts on this topic, it's not possible. https://blogs.windows.com/buildingapps/2016/03/30/run-bash-on-ubuntu-on-windows/ However, some in the aforementioned thread have had some successes. https://www.reddit.com/r/emacs/comments/4vxoug/emacs_on_windows_10_anniversary_update/d63g8dz Will On Wed, Aug 10, 2016 at 9:43 AM, Eli Zaretskii <e...@gnu.org> wrote: >> From: David Klein <dkle...@gmail.com> >> Date: Wed, 10 Aug 2016 11:45:09 +0300 >> >> I am trying to get M-x shell to work with "Bash on Ubuntu on Windows" >> (https://blogs.windows.com/buildingapps/2016/03/30/run-bash-on-ubuntu-on-windows/) >> >> I have tried >> >> (setq explicit-shell-file-name "C:/Windows/System32/bash.exe") >> (setq shell-file-name explicit-shell-file-name) >> >> but when I type "M-x shell" I get the error >> >> "Spawning child process: invalid argument" > > Are you sure this bash.exe is a native Windows program? E.g., can you > invoke it from any program other than cmd.exe, like make.exe or the > Cygwin Bash? >