Hacker News new | ask | show | jobs
by gnarlouse 883 days ago
Can somebody explain why they’re attributing ZSH to macOS? It’s clearly cross platform
3 comments

It would be equally appropriate/wrong to say that mksh, the MirBSD Korn shell, is Android's system shell.

The manual page for mksh also mentions Android in the introduction for those who do not understand the role.

Thank you. As someone who avoids Apple at all costs but loves zsh, this really rubbed me the wrong way. Pretty sure MacOS used to use bash too.
The only guess I have is because it's the default interactive shell on macOS, while bash is probably more common on GNU systems.

But that also doesn't make much sense given that this is about non interactive scripts.

To be honest it's kind of crazy that for all the work that's gone into nodejs, it either doesn't have, or people don't know about, basic functionality that these examples are running a shell for.

> default interactive shell

Is that fairly new? I thought the default shell was bash.

Since Catalina, released in 2019.