Skip to content

Recognise : "${VARIABLE:="default"}" as variable definition #519

Closed
@Frederick888

Description

@Frederick888

: does argument expansion and retains the side effects.
A common usage is to define default values of environment variables, e.g. : "${VARIABLE:="default"}".

It seems this is only recognised as variable reference at the moment. It would be nice to treat them as definitions as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgrammar 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