Skip to content

[linux] read.tests: 'read -t 1' prints 'timeout 1: ok' where GNU prints the bare status line #238

Closed

Description

@caomengxuan666

Linux build (wt4/linuxrun), true-baseline read.tests vs GNU 5.3.0 (2 stdout diff lines).

Evidence (target/issue-suites/results/true-baseline/read/{gnu.out,rb.out} around line 89):

 GNU: 1                 RUB: timeout 1: ok

Context: the suite's read -t 1 timeout case. GNU's read builtin times out, the suite prints the return code 1; rubash additionally (or instead) emits timeout 1: ok - either rubash's read -t succeeds where GNU times out, or the surrounding diagnostic differs. Needs one-line minimization against builtins/read.def (read_builtin timeout path, -t returns >128 per POSIX unless input available; exact GNU contract: timeout exit status is >128, and the suite echoes timeout 1: ok only in its own ok-branch).

Artifacts: as above; ledger read 2 env=0.

Activity

  1. added
    bug
    gnu-baseline
    on Sep 27, 2026
  2. caomengxuan666 commented on Sep 27, 2026

    @caomengxuan666
    MemberAuthor

    证据裁定为环境绑定,予以关闭:#236=Win32 无法创建通配符命名文件(GNU-on-drvfs 靠 PUA 编码落盘 U+F02A;条目经 MSYS/WSL 工具创建后 rubash 全转义星矩阵与 GNU 字节一致,工件 target/issue-suites/results/misc2-lane/glob236/);#238=read -t 1 </dev/tty 仅在 harness 会话分歧(/dev/tty 设备假象;直探与 timeout 包裹两壳均 estat=142 一致)。感谢报告!

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