Skip to content

[bug] ls shell-escape quoting segments $'...' per character in C locale (GNU merges one segment) #1890

Done

Description

@caomengxuan666

在 C locale 下,ls --quoting-style=shell-escape 对含多字符不可打印字节串的文件名,引号分段与 GNU ls 9.4 不同:

  • GNU(整串并一段):''$'\344\270\255\346\226\207'
  • winuxcmd ls(逐字一段):''$'\344\270\255'''$'\346\226\207'''

单字串两边一致;差异只在多字符不可打印串的分段。属 base 既有面(#1646 同族),与 #1887 的 utf8_locale 改动无关——apply_quoting 未被该 PR 触及、C locale 下其行为改前改后相同。#1887 新增的回归钉断言的正是这个既有形(注释称之为 GNU 形,不准确),修本单时一并正名该注释。

证据:队长复核 #1887 时 X299 实机 26 例探针 vs 云端 tarball GNU coreutils 9.4 ls 逐字节比(探针 02/23),执行记录 lane-1887-review-exec-2026-11-27.md。

Activity

  1. added 2 commits that reference this issue on Nov 30, 2026
    c669927
    6a6fcc2
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions