Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support zsh #46

Open
poetaman opened this issue Sep 19, 2021 · 2 comments
Open

Support zsh #46

poetaman opened this issue Sep 19, 2021 · 2 comments

Comments

@poetaman
Copy link

Support zsh, as it is supposedly more awesome compared to bash.

@harkabeeparolus
Copy link

Zsh is more awesome, but it has quite different syntax, so I feel that should be the focus of a separate project. Most importantly, zsh doesn't need quotes around everything like bash does, so you are much less likely to shoot yourself in the foot, but that also means it's not bug compatible with bash.

Bash is still the most portable default option for writing portable shell scripts.
Why focus on bash?

@anordal
Copy link
Owner

anordal commented Aug 3, 2022

Can you be more specific?

Shellharden is supposed to be useful for other POSIX shell derivatives than Bash: It shall certainly accept correct POSIX shell scripts, and when it's not correct, most of what it does (quoting) is going to be valid POSIX shell. The Bash specialization is mostly about accepting bashisms; only rarely does it insert bashisms (arrays). And Zsh supports Bash style arrays.

Other than the commonalities with POSIX shell and Bash, I don't know enough about Zsh to make zsh-specific adaptations or have a feeling for what's correct and not. I use Fish when I'm not scripting in Bash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants