Skip to content

gnu-compat G10: 词切分中的反斜杠转义保留 #82

Closed

Description

@caomengxuan666

tests/exp.tests(549/533)、tests/comsub.tests(97/102):

  • \Hello world!\:转义空格应保留 \ 输出(recho 显示),rubash 丢反斜杠。
  • \/tmp\/foo\/bar:命令替换结果中 / 前转义保留(rubash 输出 /tmp/foo/bar)。
  • ")" → )\;两个词 a b 被合并为 ab。

GNU 5.3.0 参考:subst.c word split / 字段展开的转义保留。

原始 diff:exp.diff、comsub.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: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