Skip to content

[Compat][BusyBox][ash-heredoc] Bash-compatible differences #48

Closed

Description

@caomengxuan666

Current Run

Commit: 5178166
Suite: BusyBox ash tests run through scripts/run-busybox-bash-difftest.sh
Directory: ash-heredoc
Result: 5 DIFF

Raw artifact: target/issue-suites/results/busybox-bash-5178166/

Initial Cause

Heredoc ordering, quoted/backslash delimiter handling, receiver expansion and compound-command integration; owner: parser/redirection/heredoc.

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-heredoc/heredoc DIFF 0 0
ash-heredoc/heredoc2 DIFF 0 0
ash-heredoc/heredoc_and_cmd DIFF 0 0
ash-heredoc/heredoc_backslash1 DIFF 0 0
ash-heredoc/heredoc_var_expand1 DIFF 0 0

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.

Activity

  1. caomengxuan666 commented on Aug 19, 2026

    @caomengxuan666
    MemberAuthor

    Partial heredoc fix pushed in d305ee6 (Fix ash heredoc expansion semantics).

    Verified after rebasing onto origin/master:

    • cargo check
    • cargo fmt --check
    • git diff --check
    • cargo test --test cli_tests heredoc_parameter_error_writes_to_stderr_and_continues -- --nocapture
    • cargo test --test executor_tests command_chaining::part_010 -- --nocapture (16 passed)
    • Focused BusyBox slice saved at target/issue-suites/results/agent-48-rebased-focused-20260819b/results.tsv:
      • ash-heredoc/heredoc2 PASS 0/0
      • ash-heredoc/heredoc_and_cmd PASS 0/0
      • ash-heredoc/heredoc_backslash1 PASS 0/0
      • ash-heredoc/heredoc_var_expand1 PASS 0/0

    Leaving this issue open: full ash-heredoc still has remaining semantic rows, including heredoc.tests and other heredoc variants, so this is not a complete directory close.

  2. caomengxuan666 commented on Aug 20, 2026

    @caomengxuan666
    MemberAuthor

    Closing as fixed on current master.\n\nVerification performed from D:/repo/rubash at HEAD d7b6960:\n- Runner: scripts/run-busybox-bash-difftest.sh\n- GNU Bash reference: /d/Git/bin/bash.exe\n- Rubash under test: target/debug/rubash.exe\n- Timeout: BUSYBOX_TEST_TIMEOUT=8\n- Result for ash-heredoc: 24/24 PASS, 0 DIFF\n- Extra artifact check: all ash-heredoc stdout/stderr pairs matched under target/issue-suites/results/issue-closure-audit-20260820c/work/ash-heredoc/.\n\nDurable local artifacts:\n- target/issue-suites/results/issue-closure-audit-20260820c/results.tsv\n- target/issue-suites/results/issue-closure-audit-20260820c/closure-summary.md

  3. added
    bug
    gnu-baseline
    on Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggnu-baseline

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions