Skip to content

sh-syntax gaps covered by unbash #7

Description

@webpro

Compared with sh-syntax v0.6.0 (published Jul 8, 2026, bundling mvdan/sh v3.13.1), unbash handles valid Bash cases and avoids printer correctness bugs that remain open in the upstream tracker:

  • Associative-array indexes containing # and array elements beginning with bracket globs (#1285, #558)
  • Function names containing bracket suffixes, such as foo[foo]() (#1013)
  • Preserving {array[index]} file-descriptor variable redirects without inserting a meaning-changing space (#719)
  • Preserving the semantics of quoted legacy backtick substitutions when printing (#1083)
  • Keeping a trailing backslash at EOF stable across repeated parse/print cycles (#1354)

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions