* Zsh on Ubuntu on Windows @ 2016-04-23 12:51 Tyler James Leonhardt 2016-04-23 13:18 ` Jérémie Roquet 0 siblings, 1 reply; 8+ messages in thread From: Tyler James Leonhardt @ 2016-04-23 12:51 UTC (permalink / raw) To: zsh-workers [-- Attachment #1: Type: text/plain, Size: 475 bytes --] Hello, This is likely already requested, but since Ubuntu on Windows came out recently in the Windows Insider preview, I figured I would reach out to mention it. I love zsh so much on my MacBook Pro and now that Ubuntu on Windows is a thing, zsh on Ubuntu on Windows can finally be a thing. Is support for zsh on Ubuntu on Windows in the works? Zsh being available on Linux, Mac and Windows would be incredible. Thank you so much for your time! Cheers, Tyler Leonhardt ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Zsh on Ubuntu on Windows 2016-04-23 12:51 Zsh on Ubuntu on Windows Tyler James Leonhardt @ 2016-04-23 13:18 ` Jérémie Roquet 2016-04-23 13:29 ` Tyler James Leonhardt 0 siblings, 1 reply; 8+ messages in thread From: Jérémie Roquet @ 2016-04-23 13:18 UTC (permalink / raw) To: Tyler James Leonhardt; +Cc: Zsh Hackers' List Hello Tyler, 2016-04-23 14:51 GMT+02:00 Tyler James Leonhardt <tylerl0706@gmail.com>: > Is support for zsh on Ubuntu on Windows in the works? Zsh being available > on Linux, Mac and Windows would be incredible. As I understand it, Ubuntu on Windows is literally “Ubuntu on Windows” so, as Zsh is working like a charm on Ubuntu, I guess it's working as well on “Ubuntu on Windows” without any change. But I may be mistaken. > I love zsh so much on my MacBook Pro and now that Ubuntu on Windows is a > thing, zsh on Ubuntu on Windows can finally be a thing. Zsh on Windows has been working great for years without Ubuntu; you might want to try MSYS2¹, which is basically “Arch within Windows”. I'm using Zsh in it to do “Windows stuff“ and it works as well as one could hope. On the other hand, I've been told (but haven't tried myself) that the current build of Windows 10 only allows you to do “Ubuntu stuff” on your “Ubuntu on Windows” (ie. you can't run Windows programs) which for me kinds of defeat the purpose of having Zsh on Windows (but I guess it will improve very soon). Best regards, ¹ https://msys2.github.io/ -- Jérémie ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Zsh on Ubuntu on Windows 2016-04-23 13:18 ` Jérémie Roquet @ 2016-04-23 13:29 ` Tyler James Leonhardt 2016-04-23 14:11 ` Tyler James Leonhardt ` (2 more replies) 0 siblings, 3 replies; 8+ messages in thread From: Tyler James Leonhardt @ 2016-04-23 13:29 UTC (permalink / raw) To: Jérémie Roquet; +Cc: Zsh Hackers' List [-- Attachment #1: Type: text/plain, Size: 2039 bytes --] > As I understand it, Ubuntu on Windows is literally “Ubuntu on Windows” > so, as Zsh is working like a charm on Ubuntu, I guess it’s working as > well on “Ubuntu on Windows” without any change. But I may be mistaken. Unfortunately, it hasn’t been working. I’m not sure if this is a zsh issue or if Microsoft’s subsystem for Ubuntu is just acting up. I found this issue on the oh-my-zsh repo: https://github.com/robbyrussell/oh-my-zsh/issues/4984 I’m not sure if that helps at all. I was getting the same error. I’ll take a look at MSYS! As for “Ubuntu on Windows” I have a feeling the future is looking bright! Let me know what you think. Cheers, Tyler On Sat, Apr 23, 2016 at 9:18 AM Jérémie Roquet <jroquet@arkanosis.net> wrote: > Hello Tyler, > > 2016-04-23 14:51 GMT+02:00 Tyler James Leonhardt <tylerl0706@gmail.com>: > > Is support for zsh on Ubuntu on Windows in the works? Zsh being available > > on Linux, Mac and Windows would be incredible. > > As I understand it, Ubuntu on Windows is literally “Ubuntu on Windows” > so, as Zsh is working like a charm on Ubuntu, I guess it's working as > well on “Ubuntu on Windows” without any change. But I may be mistaken. > > > I love zsh so much on my MacBook Pro and now that Ubuntu on Windows is a > > thing, zsh on Ubuntu on Windows can finally be a thing. > > Zsh on Windows has been working great for years without Ubuntu; you > might want to try MSYS2¹, which is basically “Arch within Windows”. > I'm using Zsh in it to do “Windows stuff“ and it works as well as one > could hope. On the other hand, I've been told (but haven't tried > myself) that the current build of Windows 10 only allows you to do > “Ubuntu stuff” on your “Ubuntu on Windows” (ie. you can't run Windows > programs) which for me kinds of defeat the purpose of having Zsh on > Windows (but I guess it will improve very soon). > > Best regards, > > ¹ https://msys2.github.io/ > > -- > Jérémie > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Zsh on Ubuntu on Windows 2016-04-23 13:29 ` Tyler James Leonhardt @ 2016-04-23 14:11 ` Tyler James Leonhardt 2016-04-23 20:17 ` Jérémie Roquet 2016-04-23 21:40 ` Bart Schaefer 2 siblings, 0 replies; 8+ messages in thread From: Tyler James Leonhardt @ 2016-04-23 14:11 UTC (permalink / raw) To: Jérémie Roquet; +Cc: Zsh Hackers' List [-- Attachment #1: Type: text/plain, Size: 2321 bytes --] Hi Jérémie, I stumbled upon this in my search. You might be interested in it. Thanks again! Cheers, Tyler On Sat, Apr 23, 2016, 9:29 AM Tyler James Leonhardt <tylerl0706@gmail.com> wrote: > > As I understand it, Ubuntu on Windows is literally “Ubuntu on Windows” > > so, as Zsh is working like a charm on Ubuntu, I guess it’s working as > > well on “Ubuntu on Windows” without any change. But I may be mistaken. > > Unfortunately, it hasn’t been working. I’m not sure if this is a zsh issue > or if Microsoft’s subsystem for Ubuntu is just acting up. I found this > issue on the oh-my-zsh repo: > > https://github.com/robbyrussell/oh-my-zsh/issues/4984 > > I’m not sure if that helps at all. I was getting the same error. > > I’ll take a look at MSYS! As for “Ubuntu on Windows” I have a feeling the > future is looking bright! > > Let me know what you think. > > Cheers, > > Tyler > > On Sat, Apr 23, 2016 at 9:18 AM Jérémie Roquet <jroquet@arkanosis.net> > wrote: > >> Hello Tyler, >> >> 2016-04-23 14:51 GMT+02:00 Tyler James Leonhardt <tylerl0706@gmail.com>: >> > Is support for zsh on Ubuntu on Windows in the works? Zsh being >> available >> > on Linux, Mac and Windows would be incredible. >> >> As I understand it, Ubuntu on Windows is literally “Ubuntu on Windows” >> so, as Zsh is working like a charm on Ubuntu, I guess it's working as >> well on “Ubuntu on Windows” without any change. But I may be mistaken. >> >> > I love zsh so much on my MacBook Pro and now that Ubuntu on Windows is a >> > thing, zsh on Ubuntu on Windows can finally be a thing. >> >> Zsh on Windows has been working great for years without Ubuntu; you >> might want to try MSYS2¹, which is basically “Arch within Windows”. >> I'm using Zsh in it to do “Windows stuff“ and it works as well as one >> could hope. On the other hand, I've been told (but haven't tried >> myself) that the current build of Windows 10 only allows you to do >> “Ubuntu stuff” on your “Ubuntu on Windows” (ie. you can't run Windows >> programs) which for me kinds of defeat the purpose of having Zsh on >> Windows (but I guess it will improve very soon). >> >> Best regards, >> >> ¹ https://msys2.github.io/ >> >> -- >> Jérémie >> > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Zsh on Ubuntu on Windows 2016-04-23 13:29 ` Tyler James Leonhardt 2016-04-23 14:11 ` Tyler James Leonhardt @ 2016-04-23 20:17 ` Jérémie Roquet 2016-04-23 21:40 ` Bart Schaefer 2 siblings, 0 replies; 8+ messages in thread From: Jérémie Roquet @ 2016-04-23 20:17 UTC (permalink / raw) To: Tyler James Leonhardt; +Cc: Zsh Hackers' List Hi again, 2016-04-23 15:29 GMT+02:00 Tyler James Leonhardt <tylerl0706@gmail.com>: > Unfortunately, it hasn’t been working. I’m not sure if this is a zsh issue > or if Microsoft’s subsystem for Ubuntu is just acting up. I found this issue > on the oh-my-zsh repo: > > https://github.com/robbyrussell/oh-my-zsh/issues/4984 > > I’m not sure if that helps at all. I was getting the same error. I helps to know it doesn't work at easily as expected, at least. Unfortunately, I don't have access to a Windows build with Ubuntu at the moment — maybe someone else on this list has? Trying to make zsh work will be one of the first things I'll do once I get that build, but I don't know when it'll happen. > I’ll take a look at MSYS! As for “Ubuntu on Windows” I have a feeling the > future is looking bright! So do I :) Best regards, -- Jérémie ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Zsh on Ubuntu on Windows 2016-04-23 13:29 ` Tyler James Leonhardt 2016-04-23 14:11 ` Tyler James Leonhardt 2016-04-23 20:17 ` Jérémie Roquet @ 2016-04-23 21:40 ` Bart Schaefer 2016-04-23 23:42 ` Tyler James Leonhardt 2 siblings, 1 reply; 8+ messages in thread From: Bart Schaefer @ 2016-04-23 21:40 UTC (permalink / raw) To: Zsh Hackers' List; +Cc: Tyler James Leonhardt On Sat, Apr 23, 2016 at 6:29 AM, Tyler James Leonhardt <tylerl0706@gmail.com> wrote: > > Unfortunately, it hasn’t been working. I’m not sure if this is a zsh issue > or if Microsoft’s subsystem for Ubuntu is just acting up. I found this > issue on the oh-my-zsh repo: > > https://github.com/robbyrussell/oh-my-zsh/issues/4984 Based on the error message in that report, either zsh was compiled with the wrong config.h settings or Microsoft's emulation of one of the wait() family of system calls is incomplete. I don't know which of the following #ifdef branches is being used -- #ifdef HAVE_WAIT3 # ifdef HAVE_GETRUSAGE struct rusage ru; pid = wait3((void *)&status, WAITFLAGS, &ru); # else pid = wait3((void *)&status, WAITFLAGS, NULL); # endif #else # ifdef HAVE_WAITPID pid = waitpid(-1, &status, WAITFLAGS); # else pid = wait(&status); # endif #endif -- but the error message indicates that the returned pid == -1 and errno has been set to "invalid argument", so something is askew in whichever branch it was. Who compiled the zsh you are using? ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Zsh on Ubuntu on Windows 2016-04-23 21:40 ` Bart Schaefer @ 2016-04-23 23:42 ` Tyler James Leonhardt 2016-04-24 0:21 ` Bart Schaefer 0 siblings, 1 reply; 8+ messages in thread From: Tyler James Leonhardt @ 2016-04-23 23:42 UTC (permalink / raw) To: Bart Schaefer, Zsh Hackers' List [-- Attachment #1: Type: text/plain, Size: 1620 bytes --] Hi all, I just realized I forgot to attach the link… haha This apparently has a workaround that I haven’t tried yet. https://github.com/Microsoft/BashOnWindows/issues/91 I just used apt-get to install it. I’m not sure who compiled it unfortunately. Curious to see what you think. Cheers, Tyler On Sat, Apr 23, 2016 at 5:40 PM Bart Schaefer <schaefer@brasslantern.com> wrote: > On Sat, Apr 23, 2016 at 6:29 AM, Tyler James Leonhardt > <tylerl0706@gmail.com> wrote: > > > > Unfortunately, it hasn’t been working. I’m not sure if this is a zsh > issue > > or if Microsoft’s subsystem for Ubuntu is just acting up. I found this > > issue on the oh-my-zsh repo: > > > > https://github.com/robbyrussell/oh-my-zsh/issues/4984 > > Based on the error message in that report, either zsh was compiled > with the wrong config.h settings or Microsoft's emulation of one of > the wait() family of system calls is incomplete. I don't know which > of the following #ifdef branches is being used -- > > #ifdef HAVE_WAIT3 > # ifdef HAVE_GETRUSAGE > struct rusage ru; > > pid = wait3((void *)&status, WAITFLAGS, &ru); > # else > pid = wait3((void *)&status, WAITFLAGS, NULL); > # endif > #else > # ifdef HAVE_WAITPID > pid = waitpid(-1, &status, WAITFLAGS); > # else > pid = wait(&status); > # endif > #endif > > -- but the error message indicates that the returned pid == -1 and > errno has been set to "invalid argument", so something is askew in > whichever branch it was. > > Who compiled the zsh you are using? > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Zsh on Ubuntu on Windows 2016-04-23 23:42 ` Tyler James Leonhardt @ 2016-04-24 0:21 ` Bart Schaefer 0 siblings, 0 replies; 8+ messages in thread From: Bart Schaefer @ 2016-04-24 0:21 UTC (permalink / raw) To: Tyler James Leonhardt; +Cc: Zsh Hackers' List On Sat, Apr 23, 2016 at 4:42 PM, Tyler James Leonhardt <tylerl0706@gmail.com> wrote: > > This apparently has a workaround that I haven’t tried yet. > https://github.com/Microsoft/BashOnWindows/issues/91 Well ... [1] This confirms exactly what I just said, that Microsoft has a broken wait3(). [2] Not so much a workaround as an explanation for how to recompile zsh. > I just used apt-get to install it. I’m not sure who compiled it That it was pre-compiled by someone for binary installation with apt-get is sufficient explanation. The binary will have been built on a real Ubuntu kernel with a working wait3() and therefore won't be compatible with the emulated implementation inside Windows 10. Short answer seems to be to recompile with HAVE_GETRUSAGE removed from config.h. ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2016-04-24 0:21 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2016-04-23 12:51 Zsh on Ubuntu on Windows Tyler James Leonhardt 2016-04-23 13:18 ` Jérémie Roquet 2016-04-23 13:29 ` Tyler James Leonhardt 2016-04-23 14:11 ` Tyler James Leonhardt 2016-04-23 20:17 ` Jérémie Roquet 2016-04-23 21:40 ` Bart Schaefer 2016-04-23 23:42 ` Tyler James Leonhardt 2016-04-24 0:21 ` Bart Schaefer
Code repositories for project(s) associated with this public inbox https://git.vuxu.org/mirror/zsh/ This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).