Skip to content

[Compat][ksh93] Bash-compatible test directory differences #42

Closed as not planned

Description

@caomengxuan666

Current Run

Commit: 5178166
Suite: ksh93 tests filtered to Bash-compatible execution
Result: 31 DIFF

Raw artifact: target/issue-suites/results/ksh93-diff-5178166-current/

DIFF Cases

alias DIFF 30 2 30 2
arith DIFF 2 127 2 127
basic DIFF 124 1 124 1
builtins DIFF 125 124 125 124
case DIFF 7 2 7 2
coprocess DIFF 2 3 2 3
enum DIFF 2 124 2 124
exit DIFF 5 1 5 1
glob DIFF 2 1 2 1
grep DIFF 0 1 0 1
heredoc DIFF 14 2 14 2
io DIFF 2 1 2 1
jobs DIFF 2 11 2 11
locale DIFF 39 2 39 2
loop DIFF 8 2 8 2
math DIFF 2 127 2 127
nameref DIFF 2 127 2 127
path DIFF 124 2 124 2
printf DIFF 4 2 4 2
quoting DIFF 51 2 51 2
readonly DIFF 2 7 2 7
recttype DIFF 2 125 2 125
restricted DIFF 16 8 16 8
return DIFF 19 1 19 1
sh_match DIFF 2 26 2 26
statics DIFF 2 127 2 127
subshell DIFF 2 127 2 127
substring DIFF 2 127 2 127
tilde DIFF 4 2 4 2
variables DIFF 124 1 124 1
vartree1 DIFF 2 5 2 5

Scope

Only Bash-compatible behavior is in scope. ksh-only syntax, host fixtures, runner failures, and environment-only diagnostics must be classified separately before semantic fixes. Every listed row needs a minimal Bash/Rubash reproducer and an owner.

Activity

  1. caomengxuan666 commented on Aug 17, 2026

    @caomengxuan666
    MemberAuthor

    Initial reason classification

    The 31 rows are not all semantic failures. The current runner output must be split before fixes:

    • Host/runner or fixture candidates: basic, builtins, enum, locale, path, variables. These include timeouts, locale setup, TTY/path fixtures, or ksh test support assumptions.
    • Arithmetic/status: arith, math. Check invalid constants, division-by-zero, integer-base parsing, and status propagation.
    • Expansion and pattern semantics: alias, case, glob, nameref, substring, quoting, variables.
    • Heredoc/process/job semantics: heredoc, coprocess, jobs, subshell, return, loop.
    • Builtin/diagnostic contracts: grep, io, printf, readonly, rectype, restricted, statics, tilde.

    The first implementation gate is to reproduce every row as a minimal Bash-compatible script. ksh-only language and host fixtures are excluded. Candidate owners are parser/expansion, arithmetic, builtins, jobs/fd, and host diagnostics respectively. Raw rows and status pairs are in target/issue-suites/results/ksh93-diff-5178166-current/.

  2. caomengxuan666 commented on Aug 21, 2026

    @caomengxuan666
    MemberAuthor

    Evidence refresh on b5e3f7b: the prior Ksh artifact remains a 31-DIFF historical ledger, while the latest isolated Ksh attempt only produced a manifest without status/stdout/stderr. This issue remains open until a reproducible Ksh runner and per-test classification are available.

  3. caomengxuan666 commented on Sep 7, 2026

    @caomengxuan666
    MemberAuthor

    ksh93 已 vendor + runner 就绪

    • third_party/ksh93/:upstream tests/(58 项)+ shtests + README(来源:本机 ksh93-src 克隆);
    • scripts/run-ksh93-difftest.sh:GNU 基线 difftest runner(WSL GNU 5.2.21 为参考侧,KSH_BIN 可选注入 ksh,逐项超时);
    • 提交 222a7e3(git push 被本机代理阻塞,恢复后推送)。

    runner 尚未端到端验证(ksh 二进制的获取/构建是前置),后续轮次补:装 ksh → 跑 runner → 产出 first-pass 分类表。

  4. caomengxuan666 commented on Sep 11, 2026

    @caomengxuan666
    MemberAuthor

    Closing in favor of the GNU Bash 5.3.0 true-baseline measurement as the single compatibility yardstick (ledger: #62, status: docs/COMPATIBILITY-STATUS.md).

    Rationale: the ksh93 test directory is not a GNU Bash upstream test. GNU is the only suite family with a quantified baseline (83 suites, 2026-09-11 full rerun: 32 zero-diff suites, 2072 total diff lines), so per-family ksh93 ledgers are no longer maintained in parallel.

    If any row in this run is later shown to be a real Bash-semantic gap, re-file it as a minimal Bash/Rubash reproducer against the GNU baseline ledger (#62). Raw artifacts remain under target/issue-suites/results/ksh93-diff-5178166-current/.

  5. 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