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

Breaks ZSH code #124

Open
docwhat opened this issue Oct 29, 2020 · 1 comment
Open

Breaks ZSH code #124

docwhat opened this issue Oct 29, 2020 · 1 comment

Comments

@docwhat
Copy link

docwhat commented Oct 29, 2020

I write a bunch of ZSH stuff (mainly for my .zshrc) and despite zsh begin removed from the supported list it still tries to run shift on editors with ZSH "Shell Script" contents.

The main killer for me is that is converts (( $+commands[zsh] )) into (( $ + commands[zsh] )) which always returns true.

if (($+commands[zsh])); then
  echo found zsh
fi

What's the right way to do this?

Should there be a new "language" for ZSH files?

Should shell-format detect that a "Shell Script" file is ZSH and not run whatever formatter is being run?

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

No branches or pull requests

3 participants