Skip to content

Inconsistent literalization behavior of { ... } context #10610

Description

@mqudsi

Text in curly { .. } braces subject to expansion (i.e. with at least one ,) is neither consistently expanded nor treated as a literal expression.

  • echo {*,} behaves as you would expect; it tokenizes akin to echo * with the * being treated as a wildchar globbing character
  • echo {~/,} behaves differently (imho, incorrectly), acting as if you executed echo '~/' and not like echo ~/

This inconsistent tokenization doesn't make sense and I do not believe it is intentional.

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

    bugSomething that's not working as intended

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions