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

'|' can only immediately follow a statement #141

Open
bitfrei opened this issue Feb 15, 2021 · 0 comments
Open

'|' can only immediately follow a statement #141

bitfrei opened this issue Feb 15, 2021 · 0 comments
Labels
upstream the upstream problem

Comments

@bitfrei
Copy link

bitfrei commented Feb 15, 2021

Hi, for some files, I get errors when using pipelines / pipes with ('|'):
| can only immediately follow a statement

A simple example would be:

#!/bin/bash
echo "hello" \
        | tee 

This one works, though:

#!/bin/bash
echo "hello" | \
        tee 

My first idea was that shfmt which is labored internally could be the cause.
But it works there, see mvdan/sh#665

@foxundermoon foxundermoon added the upstream the upstream problem label Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream the upstream problem
Projects
None yet
Development

No branches or pull requests

2 participants