8000 3.1b1: The consumption of whitespace inside braces has changed weirdly since 3.0 · Issue #6564 · fish-shell/fish-shell · GitHub
[go: up one dir, main page]

Skip to content

3.1b1: The consumption of whitespace inside braces has changed weirdly since 3.0 #6564

@Phidica

Description

@Phidica

Tried using tagged release 3.1b1 as well as current master (1101cff) built from source on Fedora 30, running in Gnome Terminal.

I just noticed this while responding to #5880.

In 3.0, extra whitespace inside of braces was consumed from both sides:

$ echo .{  foo  bar  }.
.foo  bar.

In 3.1b1, (perhaps due to the changes from #5869?) we trim whitespace but only from the front:

$ echo .{  foo  bar  }.
.{foo  bar  }.

Honestly, I'm not sure what should be happening. Do we want to preserve everything inside of braces that don't contain a comma/variable? Or, do we still trim spaces from the front and back like we do when there is a comma/variable? Consider that

$ echo .{  foo  ,  bar  }.
.foo. .bar.

still comes out symmetric in 3.1b1.

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

      0