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

294

u/thepeacemaker Mar 30 '16

Apparently, they've added support for native ELF binaries to Windows.

http://blog.dustinkirkland.com/2016/03/ubuntu-on-windows.html

"Hum, well it's like cygwin perhaps?" Nope! Cygwin includes open source utilities are recompiled from source to run natively in Windows. Here, we're talking about bit-for-bit, checksum-for-checksum Ubuntu ELF binaries running directly in Windows.

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

→ More replies (1)
→ 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.

→ More replies (4)

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.

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

76

u/Workaphobia Mar 30 '16

Apparently, they've added support for native ELF binaries to Windows.

Well now I know I'm not in my home universe.

Incidentally, "Adding support for native ELF binaries to Windows" would be a great Cards Against Humanity card. It'd pair well with the "This is the way the world ends" card.

19

u/KeytarVillain Mar 31 '16

It would be perfect for Cards Against IT

→ More replies (2)
→ More replies (24)