Skip to content

gnu-compat G12: error prolog(script: line N)与行号偏移 #84

Closed

Description

@caomengxuan666

三类 error prolog / 行号问题(history.tests、vredir.tests、histexp.tests、comsub2.tests):

  1. 内建错误缺 ./script.tests: line N: prolog(如 history: -x: invalid option)。
  2. 反向多打:vredir6 redirection error 前 rubash 多了 line 13:。
  3. 行号 off-by-one:comsub2 line 74 vs GNU line 75;comsub-eof heredoc 警告 line 2 vs line 1。

GNU 5.3.0 参考:error.c:61-226(error_prolog,print_lineno 语义)。

原始 diff:history.diff、vredir.diff、comsub2.diff、comsub-eof.diff

Activity

  1. caomengxuan666 commented on Sep 15, 2026

    @caomengxuan666
    MemberAuthor

    Fixed in commit(s) on master. Root-cause fix verified against WSL GNU Bash 5.3.0 baseline. See git log for details.

  2. added
    bug
    gnu-baseline
    area:parser
    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:parserbuggnu-baseline

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions