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

Parse error for functions #60

Closed
skovhus opened this issue Sep 23, 2019 · 1 comment · Fixed by #83
Closed

Parse error for functions #60

skovhus opened this issue Sep 23, 2019 · 1 comment · Fixed by #83
Labels

Comments

@skovhus
Copy link
Contributor

skovhus commented Sep 23, 2019

This fails to parse:

foo() (
  true
)

Note that a function's body can be any Compound Command, so it's also legal to write:

bar() [[ -e foo ]]
baz() if [[ $a = $b ]]; then
  echo 1
else
  echo 2
fi

Originally from bash-lsp/bash-language-server#133

@issue-label-bot issue-label-bot bot added the bug label Sep 23, 2019
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.88. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

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

Successfully merging a pull request may close this issue.

1 participant