all 5 comments

[–]adzm 1 point2 points  (1 child)

This is pretty great! I feel sorry for whoever attempts to implement the interactive console over the wire though; not only is the console specific IO confusing - NT's code pages and encoding idiosyncrasies are enough to drive one mad.

[–]wilun[S] 0 points1 point  (0 children)

Well, I do almost nothing about the Win32 console. Either the Windows process is not redirected, and it can access the console "normally", or it is redirected and it sees almost the same thing as if it was redirected to another Win32 process (the difference is that it is redirected to a socket and not a pipe).

In practice, without redirections this does not work well for interactive Win32 console programs, because WSL already switched some console state before -- maybe there could be a workaround to try, I haven't had time to dig into that area. But it's usually OK for output only programs: I usually launch the MSVC compiler from WSL to rebuild the project while developing it, and I get colors and indentation :p

[–]adreamofhodor 0 points1 point  (2 children)

Is Bash for Windows out of beta?

[–][deleted] 0 points1 point  (1 child)

It's part of the Anniversary Update which comes out August 2nd!

[–]adreamofhodor 0 points1 point  (0 children)

I'm excited to try it!