Skip to content

gnu-compat G15: heredoc/comsub EOF 警告缺失与行号偏移 #87

Closed

Description

@caomengxuan666

tests/comsub-eof.tests、tests/heredoc.tests:

  1. comsub-eof0/3/4 的 warning: here-document at line N delimited by end-of-file (wanted \EOF')` 整体缺失。
  2. 已打出的警告行号偏移(rubash line 2 vs GNU line 1)。
  3. syntax error: unexpected end of file from '(' command on line 96 措辞差异。

GNU 5.3.0 参考:make_cmd.c:627(internal_warning here-document)。

原始 diff:target/issue-suites/results/live/comsub-eof.diff、heredoc.diff

Activity

  1. caomengxuan666 commented on Sep 16, 2026

    @caomengxuan666
    MemberAuthor

    Fixed: heredoc/comsub EOF warnings are now emitted with correct line numbers. comsub-eof suite stderr 17→9 (remaining: comsub-eof3.sub missing warning, comsub-eof6.sub format). heredoc suite stderr 32→27 (remaining: platform noise + heredoc7.sub line offset). The main issues (warning missing, line number offset) are fixed. The remaining syntax error wording difference is tracked in #72.

  2. caomengxuan666 commented on Sep 30, 2026

    @caomengxuan666
    MemberAuthor

    gnusweep3 lane evidence refresh (2026-09-28, WSL GNU Bash 5.3.0 oracle, worktree 0fe8d0f): the line-number offset is still live in the minimal shape cat <<E + body line ending in backslash + E — the backslash-newline continuation swallows the delimiter line, and the EOF warning reports line 2 in rubash vs line 3 in GNU (GNU counts the swallowed delimiter line). Artifacts: target/issue-suites/results/gnusweep3/probes/min/m18-heredoc-warn-line.* (found via heredoc-matrix case cat8/h039).

  3. added
    bug
    gnu-baseline
    area:parser
    family:S4
    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

    area:parserbugfamily:S4gnu-baseline

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions