News for hackers. Stuff that matters.
Re:Invoke Win32 applications with Bash on Windows by 0xFFC on Thursday October 20, 2016 @01:27AM (#12749911)
Wow, this is really impressive. Last time I worked with bash on Windows it felt like isolated island. But with this. I think it is a viable option right now. The only down side to it is slow file system operations. Compiling a single toy kernel (xv6) would take much longer than Linux.

This is amazing, now I can have emacs server in Linux running through bash with windows service manager.

This is fucking awesome. I hope they improve thing further and further.

The only and biggest problem : Windows ridiculous conemu. I am not going use a console which I can't resize without any problem. For the sake of God they don't have unlimited buffer option and hide scrollbar (permanently) or resize window without messing up text.

Re:Invoke Win32 applications with Bash on Windows by 9point6 on Thursday October 20, 2016 @08:30AM (#12751664)
I've actually been running an instance of VcXsrv and then running something similar to `bash -c "DISPLAY=:0.0 terminator` to run that under the X session. Way better than the CMD emulator
Re:Invoke Win32 applications with Bash on Windows by ZenoArrow on Thursday October 20, 2016 @06:58AM (#12751249)
> "Windows ridiculous conemu. I am not going use a console which I can't resize without any problem."

Sorry I don't follow. What resizing problems are you having with ConEmu? Works fine when I've tried it. We are talking about the same ConEmu, right?

http://conemu.github.io/en/

http://conemu.github.io/en/ResizeAndMove.html

Re:Invoke Win32 applications with Bash on Windows by TazeTSchnitzel on Thursday October 20, 2016 @07:19AM (#12751349)
The way they phrased it suggests they were referring to the default Windows NT terminal emulator, rather than Conemu.
Re:Invoke Win32 applications with Bash on Windows by ZenoArrow on Thursday October 20, 2016 @08:23AM (#12751628)
I would agree with you, but that'd be the first time I've ever heard that called ConEmu. It's much more likely to be called the Windows command shell, Windows command prompt or cmd. As you're clearly already aware, ConEmu is a specific product that provides an enhanced command line experience on Windows.
Re:Invoke Win32 applications with Bash on Windows by frutiger on Thursday October 20, 2016 @09:37AM (#12752032)
FWIW, `cmd.exe` is both, the shell and the console. It is not a terminal (not designed to be operated remotely) nor is it emulating a terminal of any kind.

As for the parent poster, they must be abusing the term `ConEmu`, a completely separate console program that can run win32 programs (including `cmd.exe`).

Re:Invoke Win32 applications with Bash on Windows by WorldMaker on Thursday October 20, 2016 @11:56AM (#12753426)
If it helps futher square some of the linguistics digressions the parts of cmd.exe that are the console emulator are typically referred to as the ConHost. The ConHost's console emulation is indeed not quite as great a lot of people would like, which is why many Windows users use a different console emulator named ConEmu. Obviously abbreviating the ability of ConHost's console emulation to conemu rather than spell out "console emulation" causes confusion with the ConEmu tool for Windows.
Re:Invoke Win32 applications with Bash on Windows by ygra on Friday October 21, 2016 @01:17AM (#12758299)
Cmd.exe is just the shell. The console window is handled by conhost, as are any terminal emulation things.
Re:Invoke Win32 applications with Bash on Windows by 0xFFC on Thursday October 20, 2016 @10:32AM (#12752530)
So sorry about late answer. I meant Windows default console emulator. I forgot what they call it exactly.
Re:Invoke Win32 applications with Bash on Windows by ZenoArrow on Thursday October 20, 2016 @01:57PM (#12754572)
Ah, fair enough.
Re:Invoke Win32 applications with Bash on Windows by flukus on Thursday October 20, 2016 @01:33AM (#12749930)
> Parameters are passed to the Windows binary unmodified. As an example, the following commands will open C:\temp\foo.txt in notepad.exe:

This might rain on your parade a bit. Each island still has to know about the file sytem of the other island.

Re:Invoke Win32 applications with Bash on Windows by 0xFFC on Thursday October 20, 2016 @01:38AM (#12749947)
Cutting them some slack I think is not bad idea. They are literally integrating two big operating system together. Do you see what I am saying?

As we all know Microsoft messed up with mobile and web, but when it comes to software development they are ruler without even competition. Windows kernel is wonderful peace of software, and with this wsl they are literally showing industry how is software developed.

Re:Invoke Win32 applications with Bash on Windows by flukus on Thursday October 20, 2016 @01:42AM (#12749959)
I will, they've been clear about it being a work in progress.

There are a lot of other people saying how amazing it is though, when functionality wise it's only just coming up to par with cygwin.

Edit - functionality wise as a usable bash shell, it's an acceptable linux virtual machine already.

Re:Invoke Win32 applications with Bash on Windows by cheiVia0 on Thursday October 20, 2016 @04:23AM (#12750556)
It is not a virtual machine and doesn't involve Linux in any way. It is an implementation of the Linux syscalls for the Windows kernel.
Re:Invoke Win32 applications with Bash on Windows by flukus on Thursday October 20, 2016 @05:24AM (#12750813)
Why does this trigger so many people?
Re:Invoke Win32 applications with Bash on Windows by cheiVia0 on Thursday October 20, 2016 @09:24AM (#12751946)
Re:Invoke Win32 applications with Bash on Windows by TazeTSchnitzel on Thursday October 20, 2016 @07:17AM (#12751332)
Why is “trigger” used jokingly now? Unless you think the people responding have PTSD or a similar condition.
Re:Invoke Win32 applications with Bash on Windows by flukus on Thursday October 20, 2016 @06:35PM (#12756776)
Because self diagnosed PTSD sufferers on Tumblr made a mockery of it.

The word has uses outside of the PTSD context though, like gun or database triggers.

Re:Invoke Win32 applications with Bash on Windows by TazeTSchnitzel on Thursday October 20, 2016 @09:28PM (#12757579)
> Because self diagnosed PTSD sufferers on Tumblr made a mockery of it.

Why would them being self-diagnosed matter? Why would you react to it having been “made a mockery of” by reinforcing this supposed mockery? It only makes it worse for people who have to deal with it.

Re:Invoke Win32 applications with Bash on Windows by flukus on Thursday October 20, 2016 @10:37PM (#12757803)
> Why would them being self-diagnosed matter?

Because the self diagnosis is largely made up by people who don't understand what PTSD even is. It's like someone declaring they have cancer without going to a doctor.

> Why would you react to it having been “made a mockery of” by reinforcing this supposed mockery?

Because it's become part of the lexicon now. I don't think there's any going back. My usage was the "new" usage, no relation to PTSD was intended.

Re:Invoke Win32 applications with Bash on Windows by tracker1 on Thursday October 20, 2016 @04:55AM (#12750698)
I have to agree... I'm still using the bash that comes with git for windows. It actually works (mostly) as one would expect it to work.

Also, not being able to edit the WSL filesystem from inside a windows editor is a huge loss in terms of usage. It's worse than using Samba/CIFS to share a directory and edit across to a full VM. I happen to like my gui editor, but prefer to run in Linux.

Re:Invoke Win32 applications with Bash on Windows by WorldMaker on Thursday October 20, 2016 @11:49AM (#12753369)
If you had to you can touch things in the WSL VolFS by browsing the appropriate %AppData% subfolder. I'm presuming Microsoft isn't encouraging that right now with this Interop tooling for several reasons.

At a guess one of them might be that apparently the Unix things like permissions and Unix-style metadata are stored in NTFS alternate streams (~"resource forks") that they may be worried some Windows programs might not handle quite right (ie, accidentally mangle/remove/destroy).

Re:Invoke Win32 applications with Bash on Windows by tracker1 on Friday October 21, 2016 @02:01AM (#12758445)
It actually doesn't work right, and MS just closed the issue. I'd be fine with cifs automounts in the linux subsystem for windows file directories... I mean it may take a little work, but in the end, I want to edit files with a windows gui editor, and run them via the LSW applications. Until I can do that, it's an also ran on the desktop... and until it can be used for docker with linux containers on the server, it doesn't do much use there either.
Re:Invoke Win32 applications with Bash on Windows by WorldMaker on Friday October 21, 2016 @10:44AM (#12760830)
Why can't you keep the shared files that you want to GUI edit somewhere under /mnt/?/* in a normal NTFS folder? That works fine already today.

I'm using Bash on Ubuntu on Windows for Jekyll (because installing and keeping up to date Ruby on Windows is a terrible experience and this is a much nicer alternative). My files are in D:\Repos\..., I'll have VSCode open and Jekyll running in Bash in the equivalent /mnt/d/Repos/...

Re:Invoke Win32 applications with Bash on Windows by bauta-steen on Thursday October 20, 2016 @04:39AM (#12750635)
Actually,what does an emacs server running in wsl get you rather than just running the standard win32 build?
Re:Invoke Win32 applications with Bash on Windows by 0xFFC on Thursday October 20, 2016 @05:45AM (#12750905)
Emacs on win32 dosnt support daemon mode.
Re:Invoke Win32 applications with Bash on Windows by deng on Thursday October 20, 2016 @05:52AM (#12750923)
You should upgrade. Emacs 25.1 supports daemon mode in Windows.
Re:Invoke Win32 applications with Bash on Windows by 0xFFC on Thursday October 20, 2016 @06:40AM (#12751158)
So cool. I should really really think you. Wasn't aware of that.