Skip to content

2026-10-18 PR wave: 3 byte-level regressions vs GNU 5.3.0 (comsub assign guard byte, @K trailing space, kill-then-wait notice) #796

Closed

Description

@caomengxuan666

Since the 2026-10-18 PR wave (#789–#793), three byte-level divergences
from GNU bash 5.3.0 are live on master. All verified against a locally
built bash-5.3.0(1)-release (2026-10-18); the pinned Rust tests were
green at aa7225d and are red at master.

1. comsub-bearing assignment words store a dirty value

v2=$'p\nq'$(echo r)s; printf 'len=%d' "${#v2}"; echo

GNU 5.3.0: len=5 (p\nqrs). master: len=6 — one extra byte (an IFS
guard / marker byte surviving into the stored cell). Failing test:
tests/issue379_ansic_blank_between_comsubs_regressions.rs
assignment_positions_store_clean_values (assert 2; asserts 1 and 3
still pass). Suspects: #792 (quote-state leak rework) interacting with
the #789 marker pass, or #791's marker-zone changes.

2. ${assoc[@]@K} prints a trailing space after the last pair

declare -A assoc; assoc[one]=alpha; assoc[two]=beta
echo assoc:${assoc[@]@K}

GNU 5.3.0: assoc:two "beta" one "alpha" — master:
assoc:two "beta" one "alpha" (trailing space before the next text).
The pair ORDER still matches GNU hash order; only the separator leaks
one position too far. Failing test:
tests/parameter_transform_tests.rs
test_parameter_transform_prints_key_value_pairs.

3. kill-then-wait prints a job-completion notice GNU does not print

while true; do true; done &
kill %1
echo kill:$?
wait

GNU 5.3.0 prints only kill:0. master additionally prints
[1]+ Exit 143 while true; do true; done before/at the wait.
Failing tests: tests/executor_command_chaining/part_036.rs
test_kill_background_jobspec_removes_job /
test_kill_current_jobspec_uses_last_background_job. Introduced by
#790's job-reaping changes (prctl SIGKILL path) — the reaped job's
status notification now fires where GNU's non-interactive reader
suppresses it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    regression

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions