You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Commit: 5178166
Suite: BusyBox ash tests run through scripts/run-busybox-bash-difftest.sh
Directory: ash-z_slow
Result: 1 DIFF
Raw artifact: target/issue-suites/results/busybox-bash-5178166/
Initial Cause
many_ifs performance/termination mismatch: Bash timed out at 124 while Rubash returned 2; reproduce with bounded input before semantic changes; owner: expansion performance/parser.
The result compares GNU Bash and Rubash with the BusyBox harness contract: THIS_SH, test-directory PATH, TMPDIR, helper binaries and per-test timeout. Host-only ash behavior is excluded. Each row still needs a minimal Bash-compatible reproducer before implementation.
DIFF Cases
case status bash_rc rubash_rc
ash-z_slow/many_ifs DIFF 124 2
Acceptance
Classify every row as semantic, host/fixture, or runner.
Add a minimal Bash/Rubash regression for every semantic row.
Record the owning Rust subsystem and match stdout, stderr and status.
Keep the per-test timeout and residual-process check green.
Partial IFS word-splitting fix pushed in 61cdee3 (fix: align custom IFS word splitting).
What changed:
Preserve leading/internal empty fields for non-whitespace and mixed IFS field splitting.
Trigger field splitting when the split result changes a word, even if it yields zero or one fields.
Added regression for unquoted custom IFS empty fields.
Verified after rebasing onto origin/master:
cargo check
cargo fmt --check
git diff --check
cargo test --lib field_split -- --nocapture (8 passed)
cargo test --test cli_tests compat_issue_regressions -- --nocapture (58 passed)
cargo test --test executor_tests command_chaining::part_048 -- --nocapture (50 passed)
Bounded many_ifs evidence:
Before this fix, target/issue-suites/results/agent-57-many-ifs-300s-built/results.tsv showed DIFF 0/0 with Rubash reporting 1453 failing lines.
After the word-splitting fix, target/issue-suites/results/agent-57-many-ifs-word-only-20260819/results.tsv still shows DIFF 0/0, but Rubash is down to 528 failing lines.
Leaving #57 open: remaining failures are concentrated in read scalar mixed-IFS remainder semantics (examples in the Rubash tail: read x y with IFS=": " retains trailing ':'/': ' differently from Bash).
2026-08-20 classification update from current master and bounded reproductions:\n\nIssue #57 is not currently a demonstrated Rubash semantic failure. The many_ifs test timed out on both GNU Bash and Rubash at 8s, 30s, and 120s with empty Bash output; Rubash completed at 60s in about 49s with 6856 tests / 6328 failures. A minimal exact read/IFS probe with IFS=': ' produced the same x= and y=: on both shells.\n\nEvidence and raw reproductions are recorded in commit 89e7b8b and target/issue-suites/results/issue-57-zslow-20260820/.\n\nThe remaining generated 528 lines require a BusyBox ash reference or a separated expected-output contract before they can be treated as Rubash failures. Leaving this issue open pending a valid reference-side classification rather than closing it as fixed.
Activity
caomengxuan666 commentedon Aug 19, 2026
Partial IFS word-splitting fix pushed in 61cdee3 (fix: align custom IFS word splitting).
What changed:
Verified after rebasing onto origin/master:
Bounded many_ifs evidence:
Leaving #57 open: remaining failures are concentrated in read scalar mixed-IFS remainder semantics (examples in the Rubash tail: read x y with IFS=": " retains trailing ':'/': ' differently from Bash).
caomengxuan666 commentedon Aug 20, 2026
2026-08-20 classification update from current master and bounded reproductions:\n\nIssue #57 is not currently a demonstrated Rubash semantic failure. The many_ifs test timed out on both GNU Bash and Rubash at 8s, 30s, and 120s with empty Bash output; Rubash completed at 60s in about 49s with 6856 tests / 6328 failures. A minimal exact read/IFS probe with IFS=': ' produced the same x= and y=: on both shells.\n\nEvidence and raw reproductions are recorded in commit 89e7b8b and target/issue-suites/results/issue-57-zslow-20260820/.\n\nThe remaining generated 528 lines require a BusyBox ash reference or a separated expected-output contract before they can be treated as Rubash failures. Leaving this issue open pending a valid reference-side classification rather than closing it as fixed.
caomengxuan666 commentedon Aug 28, 2026
关闭说明
many_ifs 测试在 GNU Bash 也超时 (8s/30s/120s 均超时,输出为空)。在 rubash 上 60s 超时内完成但测试数量与 bash 不同。这不是 rubash 特有的语义 bug,而是测试本身的性能问题。
聚焦 IFS 测试已通过:
IFS=":" x="a:b:c"; set -- $x; echo "$#"两边都输出 3,rc=0。