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

765

u/andlrc Mar 30 '16 edited Mar 30 '16

This is a real native Bash Linux binary running on Windows itself. It's fast and lightweight and it's the real binaries. This is an genuine Ubuntu image on top of Windows with all the Linux tools I use like awk, sed, grep, vi, etc. It's fast and it's lightweight. The binaries are downloaded by you - using apt-get - just as on Linux, because it is Linux. You can apt-get and download other tools like Ruby, Redis, emacs, and on and on. This is brilliant for developers that use a diverse set of tools like me.

Scott Hanselman

479

u/[deleted] Mar 30 '16

Wait.

So it's not just coreutils for Windows running in Bash for Windows? You can run native x86 Linux apps straight from apt-get!? Or is apt hooked up to a Windows repo with only certain applications in it?

490

u/andlrc Mar 30 '16

Yes, that means apt, ssh, rsync, find, grep, awk, sed, sort, xargs, md5sum, gpg, curl, wget, apache, mysql, python, perl, ruby, php, gcc, tar, vim, emacs, diff, patch...
And most of the tens of thousands binary packages available in the Ubuntu archives!

http://blog.dustinkirkland.com/2016/03/ubuntu-on-windows.html?m=1

881

u/[deleted] Mar 30 '16

I think I need to get some air...

0

u/[deleted] Mar 30 '16

[deleted]

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?

→ More replies (0)
→ 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 (0)
→ 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 (3)
→ More replies (18)

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.

→ More replies (3)
→ More replies (24)

52

u/benpye Mar 30 '16 edited Mar 30 '16

Pretty sure it's using the plain Ubuntu repos, and it implements a Linux subsystem on Windows. I guess if you ran an X server on Windows you could run GUI apps with the right configuration...

EDIT: Yep, https://channel9.msdn.com/Events/Build/2016/P488

→ More replies (8)
→ More replies (15)
→ More replies (26)
→ More replies (47)
→ More replies (5)

194

u/evmax318 Mar 30 '16

This is the year of the Linux desktop!

325

u/whichton Mar 30 '16

Actually, its GNU/Windows desktop :) Its basically GNU userland running on NT kernel instead of Linux.

192

u/The_yulaow Mar 30 '16

So Stallman has won or lost? WON OR LOST?!?

71

u/Workaphobia Mar 30 '16

After the FBI vs Apple case, I'll be surprised if Stallman is still living in this hemisphere.

→ More replies (2)
→ More replies (30)

61

u/shevegen Mar 30 '16

I think Stallman would like to interject here and point out that Windows is not free.

→ More replies (4)

142

u/[deleted] Mar 30 '16

Actually, it’s GNU/NT.

Currently, you can use GNU and NT in these combinations with other systems:

  • GNU/Linux (commonly known as linux)

  • GNU/NT (this)

  • Windows/NT (commonly known as Windows)

  • Windows/Linux (commonly known as "who the fuck runs a desktop under WINE?")

40

u/playaspec Mar 31 '16

Actually, it’s GNU/NT.

Can we just call it "GUNT"? Seems fitting somehow.

→ More replies (6)
→ More replies (3)

346

u/[deleted] Mar 30 '16

I'd just like to interject for moment. What you're refering to as Windows, is in fact, GNU/Windows, or as I've recently taken to calling it, GNU plus Windows. Windows is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.

Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called Windows, and many of its users are not aware that it is basically the GNU system, developed by the GNU Project.

There really is a Windows, and these people are using it, but it is just a part of the system they use. Windows is the kernel: the program in the system that allocates the machine's resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Windows is normally used in combination with the GNU operating system: the whole system is basically GNU with Windows added, or GNU/Windows. All the so-called Windows distributions are really distributions of GNU/Windows!

→ More replies (20)
→ More replies (18)
→ More replies (2)
→ More replies (25)