Live data from Hacker News

Ask HN: Is Bash for Windows good enough to replace a Linux/Mac terminal?

news.ycombinator.com

21–30 of 53 posts

Re: Ask HN: Is Bash for Windows good enough to replace a Linux/Mac terminal?

#21
My experience and usecase is limited - I just use my Windows machine for game development - but I’ve dealt with more headaches trying to get Bash for Windows + git to play nice with Unity that I’ve just gone back to using Git for Windows and its bash exe.

Probably the weirdest problem I’ve ran into are shader files in my git repo being locked to requiring administrative rights for either Unity or Bash for Windows to be able to open them.

Re: Ask HN: Is Bash for Windows good enough to replace a Linux/Mac terminal?

#22
I've been watching the whole Bash on Windows thing since it launched and it blows my mind in almost every possible way, the project has all the potential to make Windows a viable programming environment, specially for PHP and Ruby folks, which need to run Apache and all that stuff.

It won't replace a full Linux install, but it might be enough for most use cases (it doesn't run X yet, for example). So virtual machines aren't exactly going to be replaced by Bash on Windows.

But for people who buy Macs just because it is a Unix machine that runs Photoshop, and use Homebrew and Macports, which let's be clear apt-get wins hands-down, Bash on Windows is a strong alternative for these types of users.

I own a Macbook Air 2011, Apple prices skyrocketed in Brazil and for me to pay that price on a machine that has soldered RAM, almost no ports, having to buy expensive adapters, to use a shitty package manager with an OS that makes me dual-boot with Windows/Linux for some things, I am definitely considering a Lenovo or Dell machine with Windows for my next development environment.

Of course, not all things are perfect, while the project seems to be moving at an awesome pace and the future is bright, it is still in Beta, and lots of things are broken for now, if it becomes as stable as it should be, it will be big. I am eagerly waiting for the stable version of it.

Re: Ask HN: Is Bash for Windows good enough to replace a Linux/Mac terminal?

#23
In short: yes. I recently went through this with a new work laptop.

I checked a couple boxes, restarted, and installed ConEmu.

I added symlinks in my bash home directory for "c", "docs", and "downloads", and pinned my Linux installation as a favorite in Windows Explorer, which makes file management between the two systems incredibly easy.

I installed git, and zsh, and a lot of the other basics. Zero issues. It's a normal Ubuntu installation.

I've been thrilled with it, so much so that I just plunked down some money for my first Windows laptop in years, and I'm selling my old Macbook Pro.

It's the real deal. Microsoft is on fire lately.

Re: Ask HN: Is Bash for Windows good enough to replace a Linux/Mac terminal?

#24
Last I tried, absolutely not. There is a bug with TCP/IP that apparently prevents nodejs from doing anything networking related. So for example, express will not run because it can't find to the port to listen for HTTP.

Its been documented and seemingly ignored by the bash team every time I've checked so I may stuck sticking with a laptop that doesn't have an escape key.. :(

Proceed with caution, for now.

Re: Ask HN: Is Bash for Windows good enough to replace a Linux/Mac terminal?

#25
It's not 100% there yet but it's pretty damn close for me. If you are set on running a stable build of Windows then there are still some bugs out there that range from annoying to possible deal breakers. The two that come to mind is the stable version doesn't support 256 colors (annoyance) but then there are issues like this that stop me from being able to totally use go: https://github.com/Microsoft/BashOnWindows/issues/638

Most of these are fixed in the insider builds of Windows but that means you have to run full insider builds, you can't pick and choose components, so sometimes that is a non-starter for people.

Some of the annoying (color, cut & paste, etc) things can be fixed by using something like ConEmu (what I use).

I've actually stopped using my macbook and am now just using my company provided Windows machine for day-to-day stuff and it's been pretty smooth for the most part.

full disclosure: I work at Microsoft

Re: Ask HN: Is Bash for Windows good enough to replace a Linux/Mac terminal?

#27
I've been using Bash for Windows at work for a couple of months, and it's mostly been good enough that I don't need to fire up my ubuntu vm anymore.

The biggest problem I've run into lately is that I really want to be able to run GUI-based programs, and even though that does worth with VcXWin, it's kind of crappy, especially for font rendering.

Anyone know of a free (or cheap) x window server for windows that does anti-aliasing?

Re: Ask HN: Is Bash for Windows good enough to replace a Linux/Mac terminal?

#28
I do scientific programming using FORTRAN 90 and Python. I am Windows Insider with fast build releases set up in my Dell XPS. For my needs it has served well. But I request MS developers to give more control over how to utilize system resources more efficiently. It needs to be more transparent and documented for users of procexp.

Re: Ask HN: Is Bash for Windows good enough to replace a Linux/Mac terminal?

#29
post #27

I've been using Bash for Windows at work for a couple of months, and it's mostly been good enough that I don't need to fire up my ubuntu vm anymore. The biggest problem I've run into lately is that I really want to be able to run GUI-based programs, and even though that does worth with VcXWin, it's kind of crappy, especially for font rendering. Anyone know of a free (or cheap) x window server for windows that does an…

I wonder if MS finds a way to port open source Linux apps in Windows 10.

Re: Ask HN: Is Bash for Windows good enough to replace a Linux/Mac terminal?

#30
Personally, I dislike it. I have been a Cygwin user for a few years and I desperately want to like LSFW, but I just can't. I find the customization options of Cygwin to be much more and I can get things like Tmux working on it without any issues.

I also have a ton of docker compatibility issues when trying to work with containers, ultimately I just wrote a power shell script to get my docker-compose environment up and running and go from there.

As far as I know, you also can't run nginx on port 80 which makes it challenging for web development (i'm sure I can run things on different ports, but who wants to do that).

I think it's promoting, but not quite ready to replace my MacBook & Linux partitions yet.

Post reply on HN