Skip to content

gnu-compat G23: 控制字符经引号传递丢失(^A/^L) #95

Closed

Description

@caomengxuan666

tests/nquote1.tests、tests/nquote4.tests:控制字符经引号传递丢失。

  • v^A^A → rubash argv 得空串(GNU 保留 ^A^A)。
  • -en \01(printf ANSI-C 转义联动)。
  • ab^Lde → abde(^L 丢失)。

GNU 5.3.0 参考:subst.c(ansicstr)、lib/sh/strtrans.c(ANSI-C 引用展开)。

原始 diff:nquote1.diff、nquote4.diff

Activity

  1. caomengxuan666 commented on Sep 16, 2026

    @caomengxuan666
    MemberAuthor

    Fixed: control characters (^A/^L) now preserved through quote passing. nquote1 and nquote4 suites are 0 diff against WSL GNU Bash 5.3.0. Fix includes CR preservation in lexer (split('\n') instead of str::lines()) and ANSI-C quote handling in command substitution word splitting.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions