Skip to content

Wrong ';' after & in while loop, giving syntax error #10

Description

@jnuyens

Example:
#!/bin/bash
while true
do
sleep 1 &
done

Gives this with syntax error:
while true;do sleep 1&;done

Should be without the ; before done because of the &:
while true;do sleep 1&done

Thank you for maintaining this!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions