Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Zsh on Ubuntu on Windows

On Sat, Apr 23, 2016 at 6:29 AM, Tyler James Leonhardt
<tylerl0706@xxxxxxxxx> 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
        struct rusage ru;

        pid = wait3((void *)&status, WAITFLAGS, &ru);
# else
        pid = wait3((void *)&status, WAITFLAGS, NULL);
# endif
        pid = waitpid(-1, &status, WAITFLAGS);
# else
        pid = wait(&status);
# 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?

Messages sorted by: Reverse Date, Date, Thread, Author