Skip to content

wt33 #374 residue: time-in-pipeline stages + assorted probe-verified divergences (source-procsub, compgen readonly, read -u fd, indirect case-mod, invalid-octal wording) #396

Closed

Description

@caomengxuan666

Consolidated follow-up from the wt33 test-maintenance pass on #374. Each item has a script-file probe pair under target/issue-suites/results/wt33-373/run/ (K-series; .gnu/.rub = stdout/stderr/rc for both shells). Some K extracts were mechanically produced and two had corrupted string literals — re-verify each before fixing.

  1. time as a pipeline stage / with compound bodies (probes K060, K061, K073, K067): GNU rc 0 (runs, e.g. t -p ((1)) output real/user/sys to stderr), rubash rc 2 (parse error). Includes ! time cmd | pipe status flip.
  2. source <(...) (K018, K019): GNU sources the procsub stream in the current shell (rc 0); rubash rc 1 / no effect.
  3. compgen -A readonly / action prefix-suffix-filter (K024, K025): GNU lists readonly vars; rubash prints nothing.
  4. read -u N with fd from redirect (K076, K077): output/content diverges (see probe pairs).
  5. ${!var^^} indirect case-mod (K053): GNU applies to target value rc 0; rubash rc 1.
  6. Invalid octal literal wording (K057): both rc 1, message differs (see pairs).
  7. touch 'x*x' literal glob filename (K006): GNU rc 0; rubash rc 1 touch: cannot touch 'x*x': Invalid argument — may be a WinuxCmd touch issue, classify per AGENTS WinuxCmd rules before touching rubash.
  8. ! pid after background iteration (K004): output detail differs — see pair.

Related already-filed: #392 (cdable_vars PWD), #393 (@p # + set -o width), #394 (combined >(cmd>file) redirect), #395 (break/continue 0).

Activity

  1. added
    bug
    on Oct 2, 2026
  2. added a commit that references this issue on Oct 2, 2026
  3. caomengxuan666 commented on Oct 2, 2026

    @caomengxuan666
    MemberAuthor

    wt37/gapfix2 lane — per-item re-verification (fresh dual-shell probes under target/issue396/, WSL GNU Bash 5.3.0 script files vs target/debug/rubash.exe; original K artifacts were not present in this tree and the issue itself warns two extracts were corrupt):

    1. time in pipeline stages / compound bodies (K060/K061/K067/K073) — NOT REPRODUCIBLE. classify2.sh T1-T4 + classify3.sh U1-U11 cover: time true | true, true | time true, time -p ((1)), for/while/case/if/select/subshell bodies, and both ! time ... | ... flips. stdout, rc (incl. rc2=1 flip), and real/user/sys stderr identical on both shells. Either fixed since the K probes were recorded or the extracts were among the corrupt ones.
    2. source <(...) (K018/K019) — CONFIRMED, FIXED in 0d7ad042 (source/. now read a /dev/fd/N endpoint from the fd table; GNU cites evalfile.c:104 + subst.c:6392). tests/issue396_source_procsub_regressions.rs 4/4; class coverage byte-identical incl. args, /dev/fd-prefixed diagnostics rc 127, empty stream rc 0. Residual nuance: . /dev/fd/N naming a real exec-opened file fd still goes to the filesystem (GNU reopens via the fd symlink) — pre-existing, unchanged.
    3. compgen -A readonly (K024/K025) — NOT REPRODUCIBLE. GNU 5.3.0 itself rejects the action name: compgen: readonly: invalid action name (rc 0 bare / rc 2 with -P/-S), stdout empty; rubash byte-identical. The K extract claiming "GNU lists readonly vars" was corrupt.
    4. read -u fd (K076/K077) — NOT REPRODUCIBLE for the exec-redirect + read -u 7 shape (both read line-one/line-two). Original probe pair unavailable; if a different K076/K077 shape exists, needs the artifact to re-verify.
    5. ${!var^^} (K053) — NOT REPRODUCIBLE. VALUE, rc 0 on both.
    6. invalid octal wording (K057) — NOT REPRODUCIBLE. 8#8: value too great for base (error token is "8#8") identical.
    7. touch 'x*x' (K006) — platform noise, filed as WinuxCmd#1143 (noise-platform). NTFS forbids * in filenames; rubash passes the quoted literal correctly. Excluded from the rubash ledger.
    8. ! pid after background iteration (K004) — UNVERIFIABLE. Artifact missing; trivial probe (two background jobs → distinct $!) matches. Needs the original probe to re-verify.
  4. added 2 commits that reference this issue on Oct 2, 2026
  5. caomengxuan666 commented on Oct 2, 2026

    @caomengxuan666
    MemberAuthor

    Closed per the lane's classification: item 2 (source <(...)) FIXED in d5d992c — reads the /dev/fd/N endpoint from the fd table (evalfile.c:104 + subst.c:6392 move_to_high_fd model), 4/4 suite, class matrix byte-identical; items 1/3/4/5/6 NOT REPRODUCED on fresh probes (item 3's K extract was corrupted — GNU 5.3.0 itself rejects compgen -A readonly); item 7 touch 'x*x' = NTFS illegal-char platform noise, filed upstream as WinuxCmd#1143 (noise-platform); item 8 (K004 '! pid') unverifiable — artifacts missing, trivial probes match, reopen with the original probe if it recurs.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions