romkatv/zsh-bin

OSTYPE not set up

commiyou opened this issue · 6 comments

OSTYPE variable is determined at compile time.
image

What would you expect from zsh --version?

image
zsh --version should display zsh ZSH_VERSION (MACHTYPE-VENDOR-OSTYPE) (You can find it in Src/init.c)
but the zsh-bin always outputs pc-none

So, what would you expect from zsh --version?

To clarify, I'd like to know what you expect. So far you've only posted screenshots of the current state of affairs (thanks!) but nothing about how you want it changed. Send a PR maybe?

I expect zsh -c 'echo $OSTYPE' output right OSTYPE. The release‘s bin always output none
image
image

It can be solved by change --host from $ZSH_BIN_ARCH to $ZSH_BIN_ARCH-$ZSH_BIN_KERNEL, or ./config.guess.
code

Thanks for the additional clarification!

I've fixed build as you suggested and released v4.0.1.