Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Bug: Nested brace expansion does not strip leading/trailing spaces from inner brace elements #12794

Copy link
Copy link

Description

@TotalyEnglizLitrate
Issue body actions

fish: version 4.7.1
terminal: Ghostty 1.3.1
OS: Linux 7.0.6 #1-NixOS SMP PREEMPT_DYNAMIC x86_64 GNU/Linux

Reproduction

echo foo-{bar, baz-{far, faz}}
foo-bar foo-baz-far foo-baz- faz # leading space is not ignored in nested braceecho foo-{bar, baz-{far ,faz}}
foo-bar foo-baz-far  foo-baz-faz # trailing space is not ignored in nested braceecho foo-{bar, baz-{far,faz}}
foo-bar foo-baz-far foo-baz-faz # normal/expected

Expected Behaviour:
Spaces around commas should be stripped consistently at all nesting levels, matching the top-level behavior. All three commands above should have no stray spaces in the output.

Observed Behaviour:
Leading/Trailing spaces are not ignored

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.