Skip to content

fix: Wave4b P2 batch - $[ EOF scan, declare -aA, procsub fd window, trap list/DEBUG freeze, bash -o listing, jobs/alias params (#543 #544 #545 #546 #547 #549) - #578

Merged
caomengxuan666 merged 11 commits into
masterfrom
fix/wave4b-p2-five
Oct 13, 2026

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Six tickets from the huck-corpus triage, each with WSL GNU 5.3.0(1) reproduction, vendored-bash file:line anchors, and RED-then-GREEN regressions (39 new tests + 6 existing locks re-adjudicated against the fresh 5.3 oracle where the issue text carried 5.2-era expectations). Failure-set parity vs fresh master: 52 = 52, diff empty.

…ace, #546 trap listing/BASH_COMMAND freeze, #547 bash -o list form, #549 jobs lenient specs + alias -p whole-table, #544 -aA tests, #543 locks
…all redirect rejection arm

RUSTFLAGS=-D warnings surfaced an unused-must-use on the FatalNounset
arm's finish_heredoc_expansion_error call (present on master 40586ca
as a bare statement). The command's result is decided by the rejection
status after the temporary-assignment restore, so the materialization
Result is deliberately discarded - mirror the let _ = contract the
posix-assignment-failure arm already uses for its finish calls.
…he creating command

part_080's assignment input-procsub test still pinned the pre-#545
contract (stored /dev/fd/N stays readable, cat prints alpha). The fd
lifetime fix reaps a command's substitutions when the creating command
finishes (GNU execute_cmd.c:832 delete_procsubs closes fds or unlinks
fifos; WSL GNU 5.3.0(1) probe 2026-10-12), and the array form of the
same contract is already pinned in issue545_procsub_lifetime_xtrace_
regressions. Flip the scalar form the same way part_072's operand
matrix was flipped: cat reports ENOENT rc 1, redirect target stays
empty. Same-family flips in this PR: part_035 (#549), part_072 (#545).
…cise

Master's #573 wave flipped the two dparen EOF arms in run_source_impl
(dparen_arith_group_never_closes, dparen_subshell_reparse_compound_eof)
to a dual-char `) [' wording. GNU's EOF reports carry a single char:
parse.y:3912 prints the matched-pair close char, parse.y:7152 the
literal )' - a `) [' report has no GNU oracle, and no test on either
side pins it, while the #390/#413 wording pins (issue390 q1 family,
issue413 dparen_verdict_arithmetic_side_stands) exercise `)' and pass
on the pre-merge branch. Restore the `)' wording in the merge so the
branch's dparen-verdict semantics (#543 a1/a3: the dparen family owns
the )' verdict) survive master's rewording; master's other #573 changes
in the region are untouched.
# Conflicts:
#	src/executor/command_prepare.rs
@caomengxuan666
caomengxuan666 merged commit 51cafca into master Oct 13, 2026
6 checks passed
@caomengxuan666
caomengxuan666 deleted the fix/wave4b-p2-five branch October 13, 2026 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant