Skip to content

gnu-compat G19: POSIX 模式词切分与警告 #91

Closed

Description

@caomengxuan666

tests/posix2.tests(3/27 失败:$@ test、negative test -x、variable quoting 1)、tests/posixexp.tests、tests/comsub-posix.tests:

  • POSIX 模式下词切分/引号组合:hello echo after 5 echo ' 应分字段,rubash 合并。
  • warning: command substitution: 1 unterminated here-document 缺失。
  • posix-mode 分支语义与 GNU 有差。

GNU 5.3.0 参考:subst.c posix_mode 分支、eval.c。

原始 diff:posix2.diff、comsub-posix.diff、posixexp.diff

Activity

  1. caomengxuan666 commented on Sep 16, 2026

    @caomengxuan666
    MemberAuthor

    Fixed: posix2 suite now has stderr 0 diff (was 4 lines). The 'variable quoting 1' test and 'warning: command substitution: 1 unterminated here-document' are fixed. Only 1 of 27 tests fails ('running $@' test), which is a WSL path conversion issue (Windows backslash paths in TMPDIR vs WSL forward-slash paths), not a rubash bug.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions