Skip to content

[P1] variable assigned via ${V:=default} never word-splits again (breaks bash-it powerline segment loops) #428

Closed

Description

@caomengxuan666

wt91/allthemes F1 — headline engine bug (minimal repro from the 8064-cell sweep, artifacts E:/niubash-sweep/full-1/):

V=${V:=a b c}   # or first use with :=
set -- $V        # or for w in $V

GNU: the assigned value word-splits normally on later expansions ([a][b][c]). rubash: after a `:=" assignment, V never word-splits again ([a b c] as one word) — breaks bash-it powerline family's per-prompt segment loops (gitline/powerline*/redline/atomic), the source of ~400 ERROR-STORM cells in the full-theme matrix.

Related but distinct: wt66 fixed quoted array defaults ("${arr[@]:-}"); this is the scalar := path. Root-cause the assignment-expansion state after `:=" (suspect the assignment marks the var/word as quoted or the split-suppression from the assignment leaks into later expansions). GNU cite: subst.c word-splitting applies to unquoted expansions regardless of prior :=" assignment history.

Activity

  1. added
    bug
    P1-high
    area:expansion
    family:S2
    on Oct 17, 2026
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

    P1-higharea:expansionbugfamily:S2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions