Skip to content

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

@jnuyens

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!

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