Files
tty7/crates
l0ng-ai 5d80817d72 fix(shell): mark the first bash command when profile.d extends PROMPT_COMMAND (#1263)
systemd 258's 80-systemd-osc-context.sh turns PROMPT_COMMAND into an array
with its own entry after bash-preexec's. On the first prompt round that
entry ran after __bp_install had armed preexec and cleared the flag, while
the __bp_interactive_mode appended by install only runs from the next
round, so the first command of every new pane got no 133;C or 133;D.

A PROMPT_COMMAND entry now leaves the flag alone instead of spending it.

Reproduced on Ubuntu 26.04 (bash 5.3), which the CI Linux runners now use:
cli_e2e's capture_still_answers_after_a_resize and
exec_returns_the_commands_output_and_exit_code failed there on every PR.
2026-11-12 19:38:17 +08:00
..