r/programming • • Mar 30 '16

Microsoft is bringing the Bash shell to Windows 10

http://techcrunch.com/2016/03/30/be-very-afraid-hell-has-frozen-over-bash-is-coming-to-windows-10/
5.5k Upvotes

1.2k comments sorted by

View all comments

Show parent comments

359

u/superPwnzorMegaMan Mar 30 '16

So its wine for Linux binaries running on windows?

158

u/Fazer2 Mar 30 '16

It is.

88

u/Codile Mar 30 '16

It just doesn't have to be tediously reverse engineered, which obviously improves compatibility.

279

u/Workaphobia Mar 30 '16

You telling me I can run Starcraft 1 on linux on wine on windows?

40

u/randomstonerfromaus Mar 30 '16

2016 - What a year to be alive.

14

u/joonazan Mar 30 '16

That has already been done. Planescape Torment from GOG runs in Wine on Windows.

10

u/Workaphobia Mar 31 '16

And Wine itself runs directly on Windows with no unix middleware? Is this insanity, or is it genius for getting a controlled environment?

11

u/joonazan Mar 31 '16

It can be compiled with Cygwin. Wine is needed, because cough unlike OpenGL DirectX is not compatible between versions.

7

u/[deleted] Mar 31 '16

I know you're joking, but Diablo II ran better for me on Wine than on Windows 10

→ More replies (4)
→ More replies (4)

0

u/[deleted] Mar 31 '16

[deleted]

35

u/[deleted] Mar 31 '16

in all seriousness this would be great for running older programs that don't work in Windows 10 but still work in WINE

4

u/[deleted] Mar 31 '16

Jedi Knight (Dark Forces 2) is one of them -- it has been difficult to get it to run on every version of Windows after XP, and just seems to get more difficult with every GPU driver update. The best I have been able to do with Windows 8.1 was get the game running in a 1280x1024 window with software rendering (hardware acceleration and/or higher resolutions just crash the game immediately). On WINE, however, I installed it, booted it, and everything just worked -- the hardware acceleration worked, and I could play it full screen at native resolution. I can only imagine that the same thing holds true for a great number of old applications.

→ More replies (3)
→ More replies (1)

105

u/bliths Mar 30 '16

Should try running "cmd.exe bash" through Wine on Ubuntu and complete the circle

→ More replies (2)

23

u/fufukittyfuk Mar 30 '16 edited Mar 31 '16

windows is not (a) emulator??? Surprisingly fits. Edit : fixed link

51

u/nemec Mar 30 '16

From this point on it stands for Windows is now (an) emulator ;)

63

u/fufukittyfuk Mar 30 '16

From the Canyon Edge - Ubuntu on Windows -- The Ubuntu Userspace for Windows Developers

"So maybe something like a Linux emulator?" Now you're getting warmer! A team of sharp developers at Microsoft has been hard at work adapting some Microsoft research technology to basically perform real time translation of Linux syscalls into Windows OS syscalls. Linux geeks can think of it sort of the inverse of "wine" -- Ubuntu binaries running natively in Windows. Microsoft calls it their "Windows Subsystem for Linux". (No, it's not open source at this time.)

I have conflicting emotions about this.. Like when Oculus was bought by Facebook.

3

u/Codile Mar 30 '16

Meh. They can't really take Linux users/customers away from Linux, but this seems like a great thing for people who are forced to use Windows for their work. But I think it's pretty shitty that it's not open source. And I wish Microsoft would make it easier for Wine devs to improve Windows compatibility by documenting Windows syscalls and their behaviors.

→ More replies (1)
→ More replies (2)

6

u/mmhrar Mar 31 '16

Sounds more like ELF support with wrappers for UNIX system calls.

Pretty sweet!

11

u/keylimesoda Mar 30 '16

Nope. Still not an emulator. It's an implementation of Linux APIs directly tied to the Windows NT kernel.

3

u/Turtlecupcakes Mar 30 '16 edited Mar 30 '16

Why not an emulator?

Wikipedia says:

an emulator is hardware or software that enables one computer system (called thehost) to behave like another computer system (called the guest)

Isn't windows emulating the Linux syscalls?

→ More replies (2)
→ More replies (1)
→ More replies (1)
→ More replies (4)