Skip to content

Failed to parse functions #133

Closed
Closed
@heftig

Description

@heftig

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    grammar bugIssues related to the bash grammar

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions