Repository navigation
fix: round-3 slice 4 — x2 hunt, TMOUT timing, PIPESTATUS shape, array perf, z-family residuals - #1509
Merged
Merged
Conversation
GNU read.def: eof is set only when zread hits EOF (read.def:767); a satisfied -n/-N count breaks out as success (read.def:880-881), the delimiter break is at read.def:834, and the status is retval = eof ? EXECUTION_FAILURE : EXECUTION_SUCCESS (read.def:949). rubash's execute_read status logic already implements that model, but the slurp acquisition paths fed it a wrong flag: - fd-0 file / heredoc / herestring / fd-0 procsub serves derived read_eof_no_delimiter from !record_contains_delimiter(whole input), ignoring a -n/-N limit stop before EOF: `read -n 2 v` on a file without a trailing newline returned rc=1 (GNU: rc=0). - read_redirected_fd (the -u N same-command serve) never set the flag at all, so EOF without a delimiter reported success: `read -u 3 v 3<file` returned rc=0 (GNU: rc=1). Add slurped_record_eof_no_delimiter() in read_helpers.rs, replaying GNU's per-unit walk over the slurped text (unescaped delimiter found -> false; post-escape unit count reaches the limit -> false; input exhausted -> true), and use it at every slurp serve in read_io.rs and read_redirected_fd.rs, including read_heredoc_fd_input (now &mut self; both callers already hold &mut). Verified against GNU bash 5.3.20 with a 25-case script-file battery (GNU / baseline / fixed): baseline diverged on 8 cases (A_n2_stdin, B_u3, H_N2, J_n3_exact, N_n1, U_procsub_u3, X_fd0_procsub_n2, Y_dX_n2); the fixed build matches GNU on all 25. cargo test --lib read: 23 passed. Read integration regressions (issue701/714/1328/276/279/1205): 29 passed, 0 failed.
GNU replaces the shell process with the final top-level command of a -c string instead of forking: builtins/evalstring.c:126 should_suppress_fork (startup_state == 2, whole string consumed) arms CMD_NO_FORK via parse_and_execute / optimize_connection_fork (evalstring.c:148), and execute_cmd.c:5813 execute_disk_command then calls adjust_shell_level(-1) (execute_cmd.c:5819), builds the export environment (maybe_make_export_env) and shell_execve()s in place. Verified against the self-built GNU bash 5.3.20 oracle with PID / SHLVL / signal probe scripts run as files under both shells. Implementation (Unix; Windows keeps spawn+wait, as there is no process-image replacement there): - main.rs arms command_string_final_pending for the -c funnel (respawned & / coproc children excluded); the grouped driver re-arms it per group so only the string's last reader unit carries it; run_source_impl consumes it into exec_replace_final_frame. - execute_ast_inner_body stamps the unit's last plain command (should_optimize_fork shape: no pipeline/time/invert/background/ compound parts, no redirections; a folded &&/|| list qualifies through its last element); execute_ast_inner clears the stamp for every nested list walk (functions, trap actions, source/eval, compound bodies), with a one-shot hold for the and-or tail element (execute_cmd.c:2886 execute_connection frame semantics). - spawn_external_process execs the fully prepared Command in place (CommandExt::exec runs the pre_exec signal reset and /dev/fd pins in-process) after execution-time gates mirroring the should_optimize_fork re-check: no EXIT/ERR/signal trap armed, no CapturePipe drain or deferred /dev/fd writeback pending, no in-memory virtual stdin, not interactive. SHLVL is overridden with the adjust_shell_level(-1) value (clamped at 0, recreated when unset or unexported); an exec failure is diagnosed and exits with the classified status, as GNU's committed nofork path does.
The dispatcher's in-process sleep fast path (command_dispatch_primary.rs "sleep" arm) intercepted a bare sleep before the spawn site, so a -c string ending in sleep N kept the shell's process image instead of exec-replacing it (GNU builtins/evalstring.c:126 should_suppress_fork). The arm now declines when the tail dispatch stamp is set on unix; Windows (no process replacement) keeps the fast path. Verified against the GNU bash 5.3.20 oracle with a settle-aware PID probe: the launched process's /proc cmdline becomes sleep|31| for -c 'sleep 31' and sleep|72| for -c 'command sleep 72', the same form GNU shows; previously it stayed the shell's own -c cmdline with no child process.
GNU execute_cmd.c:5813-5819 adjust_shell_level reads the CURRENT SHLVL variable; a tail command's own prefix temp assignments are not part of it (SHLVL=100 cmd still adjusts from the shell's own level). This port commits prefix assignments into env_vars before the spawn (the fork path's child env depends on that), so the spawn-site read saw the prefix value: SHLVL=100 /usr/bin/env printed SHLVL=99 where GNU prints 10, and SHLVL+=5 printed 114. Freeze the value when the tail dispatch is stamped (refreshed when an and_or_list hands the stamp to its last operand, so earlier commands' assignments count) and adjust from the snapshot; the live read remains as a defensive fallback. Verified against the GNU bash 5.3.20 oracle (matrix probe3/probe4): the SHLVL=100 prefix now prints 10, SHLVL+=5 prints 10, and the prefix-on-shell-child case prints innerP=11, all matching GNU; probe5 and shlvl_probe2 remain full matches.
…ut (#1141) Composite producers and process substitutions materialize their output before the consumer starts, so the arrival schedule was lost and TMOUT never fired (GNU runs both sides concurrently: execute_cmd.c execute_pipeline; read.def arms the timeout regardless of source). Record per-chunk arrival times while a pipeline stage or procsub body produces its captured output (CaptureTiming on the capture sinks), freeze them into a TimedInput, and let read/select judge each record against the deadline in virtual time: serve only the prefix that arrived in time, accumulate the virtual wait (skipped_wait) across reads, and report timeout (142) with the partial record assigned, mirroring read.def's timeout path (partial input saved, retval 128+SIGALRM). No executor threading/Send changes and no Windows spawn changes: judging is pure arithmetic on recorded timestamps at the existing read service points (fd-table text endpoints, FUNCTION_STDIN, procsub streams/temp carriers, literal <(...) redirects, select's fd-0 and function-stdin paths).
GNU builtins/read.def:395-398: with -t 0 the builtin returns input_avail(fd) ? 0 : 1 immediately after option parsing, where input_avail is a zero-timeout select() on the read descriptor (lib/sh/input_avail.c:64; EOF/HUP/error count as readable). Nothing is read and nothing is assigned: scalars keep their values, a -a array is not replaced, REPLY is untouched, target name validity and the deferred -a failure are never consulted, and no prompt is printed. Only the -u descriptor itself was validated during option parsing (the existing availability check, which prints the Bad file descriptor diagnostic). The old rubash path assigned empty values, reported a live pipe with no data as available (existence instead of a poll), returned 142 on a terminal (that is the -t N expiry status, read.def:553, not -t 0's), and always failed a dup of stdin under -u N. read_timeout_zero_status now polls the endpoint's real handle with wait_readable(Duration::ZERO): File/CoprocStdout poll their kernel handle, InheritedProcessStdin polls the process stdin handle (so -u dups of stdin work), Text/ProcessSubstitution and the materialized command inputs (heredoc body, stdin string, function stdin) stay ready, closed fds fail, and the terminal special case is gone — a canonical tty polls ready only with a complete line buffered, so typeahead is safe. The first-name early validation and the -p prompt are skipped under -t 0 to match the early return's position.
GNU parse.y: parse_matched_pair scans the =~ regex word as raw text to end of input, so when it hits EOF the follow-up 'unexpected argument to conditional binary operator' diagnostic lands on the EOF line of the whole input stream (parse.y:5223-5227), not on the last token the conditional parser happened to collect. The BareEof arm computed that line as the last collected argument's line + 1, which undershoots whenever the argument list ends before the stream does (e.g. a trailing multi-line string, whose token records only its opening line). conditional_syntax_error_spec now takes the stream EOF line (new stream_eof_line helper: diagnostic_text newline count + 1, falling back to the last token's line + 1 — the same fallback conditional_eof_error_command already used) and threads it through CondCursor to the BareEof arm. Wording and all other diagnostics are unchanged.
Stacks on a50b2ded (the x4 cherry-pick that made the notice exist). GNU's notice for a job that died by signal inside parens names the job's whole command — the parens command itself (jobs.c:4625 pretty_print_job): for '( ulimit -f 0; exec dd ... )' GNU prints '<pid> File size limit exceeded ( ulimit -f 0; exec dd ... )', where a50b2ded printed the last member's text by signal_notice_command_text's convention. ShellState gains subshell_source_text: the print_cmd text of the innermost enclosing subshell, rendered at entry in execute_subshell_command_with_redirects (node text) and at the ast_exec region open (node or flat-region text, the same rendering the #720 ERR stamp uses). It rides the existing clone_for_child_save / restore_flat_subshell boundary, so it inherits exact stack semantics and reverts on every exit path with no extra plumbing. The exec-death queue site in execute_exec prefers it and falls back to the last-member convention when no entry recorded a text (respawned child executors).
…ue (part_035) The assertion claimed GNU keeps the jobs builtin's status at 0 when a jobspec fails. Re-probed against the owner-built GNU bash 5.3.20 oracle (5.3 + patches 001-020): 'jobs %1' with no jobs prints 'jobs: %1: no such job' and returns 1; 'jobs %1 %99' also returns 1; a valid jobspec and bare 'jobs' return 0. builtins/jobs.def jobs_builtin counts any_failed per bad jobspec and ends 'return (any_failed ? EXECUTION_FAILURE : EXECUTION_SUCCESS)' — the old probe note was simply wrong. The engine already implements exactly this (job_builtins.rs returns i32::from(any_failed), aligned by rubash#1123); only this stale assertion kept the suite asserting the wrong value. Flip 0 -> 1 and replace the comment with the oracle evidence.
…1237) Item 4 of #1237: in a shell-writer compound pipeline stage, the fd1 writes the endpoint arm streamed live into the OS pipe while stderr content resolving to the stdout endpoint accumulated in the thread capture frame and flushed as one block at stage end, so a merged 2>&1 pair printed every stderr byte after every stdout byte: (echo o1; echo e >&2; echo o2) 2>&1 | cat gave o1/o2/e. GNU has one channel per element: execute_pipeline binds the pipe to fd 1 and 2>&1 dups onto the same open file description (execute_cmd.c:2702-2723 execute_pipeline; redir.c:1169-1170), so merged writes interleave in write order by construction. Fix the invariant at the sinks instead of adding ordering state: - stdout_capture_write routes a frame armed with a pipeline stream straight to that stream at write time (EPIPE normalised to BrokenPipe); unarmed frames buffer exactly as before. This unifies every frame writer: endpoint None arm, write_to_fd ProcessStdout, write_stdout_bytes, write_global_stdout / diagnostics, and the current-generation write. - write_stdout_capture_at_generation does the same for a parked generation that parked a stream (stream stack is parked in parallel with the buffer stack, same index). - stdout_capture_write_mapped restores the SIGPIPE shape at the ExecuteError funnels (both endpoint Stdout None arms, write_to_fd and write_stage_stream_to_target ProcessStdout): a broken pipe on a streamed frame is the element's SIGPIPE death (status 141), not a generic io error. - write_to_fd's ProcessStderr arm appends into the executor's active stderr_capture instead of raw-writing past it, so a 1>&2 snapshot no longer splits one logical stream across two flush times (( ... ) 1>&2 | cat printed e1 before o1/o2). With no capture active the raw channel is used exactly as before, and the snapshot still never tracks later fd-2 rebindings (rubash#279). Verified against the GNU bash 5.3.20 oracle with script files: 37-case interleave matrix (compound/function/brace/loop stages, |&, nested pipes, comsub, exec 2>&1, diagnostics) plus streaming and snapshot singles are byte-identical to GNU on stdout, stderr and exit code; lib tests 718/1 (the one failure is the sandbox file-gid ownership test, environmental); 246-case differential stays 244/246 with the baseline failure set {gl08, ms10}.
…rite paths (#914) verify_typed_cells re-parsed every structured array cell at every command boundary, so any loop in an environment holding an n-element array paid Theta(n) per command (Theta(n^2) per fill loop). The per-name freshness protocol in VarTable (track_cell / mark_cell_synced / cell_is_fresh, revoked by every mirror write through the choke point) existed but had no call sites; this wires it: the verifier skips fresh cells and registers cells it proves, write paths that rebuild cell and mirror from the same entries mark the name synced (element-assignment exits, compound-assignment tail), and the coherence fuzz switches to a forced full-strength entry so its coverage is unchanged.
Both copies of append_assoc_value (executor assignment helpers and declare storage) upserted each compound token with a reverse linear scan of the growing entry list, making a single compound assignment Theta(n^2). Seed with the existing dedupe fold (first occurrence fixes the slot, last supplies the value - the contract format_assoc_storage already renders by), keep a HashMap slot index, and upsert each token in O(1); the rendered storage is byte-identical.
Element and length read gates trusted the typed cell only while the global array_cells_dirty bit was clear; a long-lived raised bit (any unsynced mirror write anywhere) forced every read of every array onto the mirror clone+scan path, which is why write/read-interleaved loops stayed quadratic after the verify fix. The gates now also admit a cell the per-name freshness protocol vouches for (proven equal to its mirror, no mirror write through the VarTable choke point since); untracked names are never fresh, so admission only widens for registered cells. The debug mirror cross-checks run only for hits admitted without freshness, the population they have always guarded.
GNU builtins/hash.def hash_builtin: the per-name loop starts with absolute_program(w) -> continue (general.c:864 absolute_program) ahead of every mode branch, so 'hash -d foo/bar' and 'hash -d ./n' are silent no-ops (rc=0, entry untouched). The delete branch in rubash lacked the skip and reported 'not found' with rc=1. The bare-name and -p branches already skip; this aligns -d. Verified against GNU bash 5.3.20 (self-built oracle): hash -d foo/bar rc 1->0 silent; hash -d ./n rc 1->0 and the 'n' entry survives (hash -t n still prints its path).
GNU builtins/hash.def hash_builtin name loop: after the
absolute_program skip, 'else if (pathname) { if (file_isdir
(pathname)) builtin_error EISDIR, opt = EXECUTION_FAILURE; else
phash_insert }'. rubash special-cased only pathname == "/"
before the loop, so 'hash -p /tmp n' and 'hash -p . n' silently
stored the directory as the command path (hash -t then printed
it, rc=0). Test is_dir per name inside the loop instead; the
slash-name skip still runs first, so 'hash -p /tmp a/b' stays a
silent rc=0 no-op like GNU 5.3.20 (oracle-verified).
The issue's headline facets (no-name usage rc=2, multi-name
stores all) already match GNU on this baseline (41d2557);
this closes the remaining -p insertion-loop divergence.
…iority, -l bucket order (#1382) GNU builtins/hash.def hash_builtin parses all options first (internal_getopt 'dlp:rt'), then: needarg check, pathname/no-name usage check, table print only when list==0 && !expunge, expunge flush, list_targets, then the per-name loop. rubash deviated in three ways in that flow: - '-r' cleared the table and returned success mid-parse. So 'hash -r ls' never hashed ls, 'hash -r -t ls' returned 0 instead of a flushed-table miss, 'hash -r -d'/'hash -d -r'/ 'hash -r -t' swallowed the sh_needarg failure (GNU rc=1), and 'hash -p /bin/ls -r' ate the pathname usage error and wiped the table (GNU rc=2). '-r' now only sets expunge; the flush runs after the needarg/usage checks. - The -p insert ran before the -t target list. GNU returns list_hashed_filename_targets before the name loop, so 'hash -t -p /bin/ls n' reports 'n: not found' (rc=1) instead of inserting it, and 'hash -d -t ls' prints the target and keeps the entry instead of deleting it. The translate branch now precedes the pathname and delete branches. - 'hash -l' printed the table in HashMap iteration order (process-random). print_hashed_commands hash_walks bucket order for both forms; the -l listing now uses the same gnu_hash_bucket/seq sort as the plain listing — the issue's own repro diffs 'hash -l' output for entries n and -l. Headline #1382 behavior (trailing -l/-r/-t after the first -p name are names, via NOTOPT) already matched GNU on this baseline; these are the remaining flag-combo divergences in the same audit family, all oracle-verified against GNU bash 5.3.20 before and after.
…freeze, absent recreates (#1364) GNU variables.c:6291 set_pipestatus_array stores into the ARRAY object and never consults att_readonly: the update lands iff the PIPESTATUS cell currently holds an array object. Model the cell as PipestatusShape {Absent, LiveArray, Scalar, Valueless} (shell/state.rs): set_pipestatus gates on the shape; attribute-builtin operands (declare/local/export/readonly) transition it via note_pipestatus_attribute_operands; binds via note_pipestatus_assignment; unset resets to Absent so the next completion recreates a live array; read paths (dynamic value / is-set / declaration view) dispatch on the shape. Also carries substitute_pipestatus_print_line and its export/readonly call sites (physically contiguous with this hunk set; logically #1363). Verified against GNU bash 5.3.20 (full build + z2 matrix + repro scripts; tally in rubash-fix3/WAVE3-REPORT.md). Known residuals: a standalone PIPESTATUS=99 assignment does not freeze yet (the plain persistent-assignment route lacks the shape hook), and PIPESTATUS[k]=v followed by the completion rewrite keeps a different index than GNU.
… substitution, unset rebuild views (#1363) Full declare -p listing merges the materialized PIPESTATUS dynamic view into print_declare_names (attribute filters honored); execute_declare passes the view in listing mode. The substitute_pipestatus_print_line helper itself landed in the #1364 commit (same contiguous hunk); this commit carries the declare-side listing plumbing. Unset-then-read is covered by the #1364 shape reset (unset -> Absent -> next completion recreates). Known residual: a valueless PIPESTATUS cell (readonly/export/declare as the first command) renders in declare -p with a spurious -a flag (declare -ar PIPESTATUS) where GNU prints declare -r PIPESTATUS — the print fallback takes the array mark without consulting the shape.
…#1394) dynamic_declaration_view's render arm for BASH_ARGC/BASH_ARGV sat behind dynamic_parameter_value(name)?, which always returns None for them — dead code, so declare -p printed =(). Render from bash_argc_view()/bash_argv_view() before the scalar-value gate (variables.c get_bashargcv materialization model: top-level read materializes the bottom frame, inside a function the arrays stay unmaterialized without extdebug).
…eys (#1398) GNU variables.c apply_varcasemod converts each array ELEMENT VALUE; an assoc key is never folded, but the storage string holds keys inline, so folding the whole string corrupted them (declare -uA h=([k]=v) stored [K]="V"). attrs.rs now parses assoc storage (past the optional STORAGE_WORD_PREFIX), converts per entry, and re-renders; sync_typed_attributes refreshes shaped cells from the mirror when the command carries a case attribute so the command-boundary checker cannot see cell/mirror disagreement. Known residual (pre-existing, outside this issue's one-shot scope): an attribute-only declare -u x with no = operand still converts existing values in rubash; GNU converts only values bound by an assignment operand in the same command (scalar, indexed and assoc alike, oracle-verified).
GNU variables.c bind_assoc_variable runs the stored value through the att_uppercase/att_lowercase conversion; the assoc branches of array_assignment_exec skipped it (declare -uA h; h[k]=abc stored abc). Apply the conversion on both the fast-append stored text and the canonical path's final value (= and +=), mirroring the indexed branch's #1401 handling. Known residual: the declare h[k]=value operand form does not convert yet — verified against GNU (declare -uA h; declare h[k]=abc stores ABC); fix site is src/builtins/declare/assign.rs.
…hape from stored form, element assignment reaches the store (#1364)
…ut the static array mark (#1363)
Integration fixup for the slice-4 pick of z2 394f01be (#1363): as committed, the closure `|key: &str, letter: &str| -> &str` in dynamic_arrays.rs does not compile under rustc 1.99.1 (lifetime may not live long enough — the returned `letter` cannot be tied to the closure return lifetime). Annotate `letter: &'static str` and the return type; every call site passes string literals, so behavior is unchanged.
caomengxuan666
force-pushed
the
fix3/slice4
branch
from
October 24, 2026 18:53
1e00349 to
5fdcc08
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Round-3 slice 4: x2 hunt batch, e3 read-EOF engine fix, a2 -c tail exec-replace, a1 TMOUT timing (partial), r2 residuals, r3 ordered capture, p2 array perf, z-family (a-rookie wave-3 residuals). 45 commits cherry-picked onto master f590d0f, each verified by patch-id or hand-resolution notes in the integration report.
x2 — hunt #1466–#1476 (10 fixes)
Fixes #1466
Fixes #1467
Fixes #1468
Fixes #1469
Fixes #1470
Fixes #1471
Fixes #1473
Fixes #1474
Fixes #1475
Fixes #1476
(#1472 was not reproduced against GNU bash 5.3.20; no change.)
e3 — read slurp EOF accounting (engine side of niubash#536)
Fixes unixwin/niubash#536
a2 —
-clast-command exec-replaceFixes #1497
a1 — TMOUT judged against recorded arrival timing (partial)
Refs #1141
The mechanism is in place and the title cases match GNU. The verification debt package was completed on the integrated tree (a1 cases c01/c08a/c19/c22/c23/c24/c25 vs GNU): the direct and function forms match GNU, but the group-redirect forms (c23/c24) and the select-redirect form (c22) still show pre-fix behavior — a1's own cluster binary reproduces the identical trio, so this is the delivered cluster state. The upgrade condition is not met; #1141 stays Refs (partial).
r2 — residuals
Fixes #1217
Fixes #1493
Refs #1290
(#1290: the BareEof diagnostic now reports the stream EOF line; the file/-c-mode lexer path that never reaches BareEof is diagnosis-only, no code change. #1109 / #1034 process-group case / #1336 residual are likewise diagnosis-only deliveries in the cluster report, no code in this slice. part_035 is a test-assertion correction to the GNU oracle value, no issue number.)
r3 — ordered capture for merged fd1/fd2
Fixes #1237
p2 — array write perf (quadratic elimination)
Fixes #914
Fixes #1264
z1 — hash residuals
Fixes #1360
Fixes #1362
Fixes #1382
(#1382's deferred
-roverlaps the #1489 fix already on master; this slice keeps that implementation and adds the -t priority and -l bucket-order work.)z2 — PIPESTATUS / declare
Fixes #1363
Fixes #1394
Fixes #1398
Fixes #1400
Refs #1364 — partial. The z2 PIPESTATUS commits are in this slice and do land the element-assignment/store work, but integration verification (z2's own 40-case matrix) scores 31/40, and the failing 9 are: the known R3 sparse-element case (out of scope, needs a sparse representation rework; see WAVE3-REPORT) plus an 8-case "first-touch" family (scalar freeze, scalar export print, declare/export/readonly as the first-ever PIPESTATUS interaction) where the committed shape machinery does not take effect. The identical 31/40 reproduces on the z2 branch lineage alone (HEAD + one compile fixup), so this is the state of the committed cluster work, not an integration conflict; #1364 stays open for a follow-up fix to the first-touch shape initialization.
z3 — kill option loop / decode_signal
Fixes #1385
Fixes #1386
Fixes #1399
z4 — executor keywords / redirection
Fixes #1355
Fixes #1358
Fixes #1359
Fixes #1369
Fixes #1371
Fixes #1390
Refs #1370 — its z4 commit (lexer token-history demotion) was picked, then reverted on this branch (commit 1e00349) after integration verification found a regression: with the demotion, any script that defines a function and later defines another function inside a subshell fails to parse (
syntax error near unexpected token '}'blamed on the first definition). Bisected on the z4 lineage to that commit alone (parent 04f4329f good, 830774bd bad). The fix itself remains on fix3/z4 for a follow-up with a full-class lexer matrix; #1370 stays open.Notes
kill::note_console_ctrl_c(regression: kill::note_console_ctrl_c lost in #1498 bulk merge — niubash master build broken #1499) was restored on master by fix: restore kill::note_console_ctrl_c lost in the #1498 bulk merge (#1499) #1514; this slice's kill-surface work (z3 option loop, x2 [bug] SIGSEGV sent to the shell itself is swallowed (kill -SEGV $$ has no effect) #1475 fatal pair) coexists with it and with the sigtimedwait platform gate (both verified present in the rebased tree).Rebase + re-verification (2026-10-25)
This branch was rebased onto master
55ea1101(after slices 2/3/5, e4 #1514 and p3 #1515 merged) and re-verified. 47 commits replayed; 4 needed hand resolution, all preserving both sides' semantics:note_typed_cell_synced) kept.declare -uA/-lAcompound init applies case conversion to assoc KEYS; GNU only converts values #1398 commits unioned with slice-2's [bug]declare -l -uon one variable: GNU cancels both case attributes, rubash keeps the last one and converts forever #1458 effective-attribute computation: conversion dispatch useseff_uppercase/eff_lowercase, and [bug]declare -uA/-lAcompound init applies case conversion to assoc KEYS; GNU only converts values #1398's per-element assoc conversion (keys never folded) plus its same-commandassignedgate both stand.Re-verification on the rebased tree (GNU bash 5.3.20 oracle):
cargo build --locked: green.cargo test --lib: 728 passed / 1 failed / 1 ignored; the only failure is the allowed baseline environment item (ownership_unary_operators_check_existing_file). (Pre-rebase: 725/1; +3 from master's newer tests.){gl08, ms10}⊆ baseline — unchanged by the rebase.readonly PIPESTATUSdoes not freeze pipeline-status updates; GNU leaves it empty #1364 matrix: 31/40, failing set identical to the pre-rebase ledger (8-case first-touch family + the R3 sparse case) — no deterioration.test_kill_jobspec_keeps_job_listed_until_reap): still failing after the rebase, unchanged — the in-process job-notice regression recorded in the integration report; slice-5's kill-surface changes neither fixed nor worsened it. Script-file form still matches GNU. Follow-up in the kill/signal family recommended; not a blocker for the verified Fixes set above.