-
-
Notifications
You must be signed in to change notification settings - Fork 330
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
'|' can only immediately follow a statement #665
Labels
Comments
It almost sounds like there's a bug in shell-format, because shfmt works just fine with what you provided:
|
ok. Well, I couldn't test it with shfmt alone, so sorry and thanks. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I'm using shfmt not directly, but with shell-format.
For some files, I get errors when using pipelines / pipes with ('|'):
| can only immediately follow a statement
A simple example would be:
It seems shfmt is not handling the line break properly as this one works:
Albeit being a legit option I would prefer the first solution.
Also shfmt does not intend
tee..
, which should be the case?The text was updated successfully, but these errors were encountered: