Skip to content

[bug] OMB powerbash10k + brainy: right-side prompt segment stored in PS1 as literal " $'...' " plus literal \E escapes (wt52/pb10k render-family, LOAD-time variant) #418

Closed

Description

@caomengxuan666

Found by wt53/themesweep (2026-10-03) full per-theme interactive load sweep. Cross-ref: wt52/pb10k lane is root-causing the interactive right-aligned-prompt render corruption and the interactive alias-leak (OMB_VERSINFO); this issue records the LOAD-time PS1 value variant of the same right-segment corruption so the family has a tracking anchor - merge/close if wt52's fix covers it.

Reproducer shape (sweep)

rcfile sets OSH/OSH_THEME=powerbash10k, sources oh-my-bash.sh, runs the PROMPT_COMMAND loop, dumps raw $PS1 between markers (harness: target/issue-suites/results/themesweep/harness/run-rb2.sh).

  • GNU 5.3.0 PS1 contains a real right-side block: ...\e[31;1m\]✗\[\e[0m\] \[\e[0;30m\]···(dot padding)···\e[80G root@host time ❯
  • rubash 1.3.0 PS1 contains instead: " $'\E[0m\]' "\[\e[32;1m\] ... - the right-side segment appears as a quoted ANSI-C string literal, with \E kept as two characters where GNU has a real ESC byte, wrapped in stray double quotes.

brainy shows the same signature (" $'...' " + \E literal).

Consequence

At render time the right-aligned segment is drawn as literal text glued to the prompt line (the corruption the owner saw interactively), and the stored PS1 is not usable for width computation.

Raw artifacts

  • PS1 dumps: target/issue-suites/results/themesweep/omb-a/{out-rb2,out-gnu}/{powerbash10k,brainy}.out
  • Render streams: target/issue-suites/results/themesweep/render/{rb,gnu}/powerbash10k/stream.bin
  • Verdict matrix: target/issue-suites/results/themesweep/omb-a/themes-A2.json

Activity

  1. added
    bug
    on Oct 3, 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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions