Skip to content

[ls] --quoting-style=locale rejected; --sort rejects unambiguous value abbreviations #1335

Closed

Description

@caomengxuan666

Summary

Two probe-verified ls option-form divergences (harness vs GNU, two runs):

  1. --quoting-style=locale is rejected. GNU accepts it (alias of clocale). WinuxCmd: ls: invalid argument 'locale' for '--quoting-style', rc2. (Accepted set in ls.cpp omits the locale/clocale pair... precisely omits locale.)
  2. --sort value abbreviations are rejected. GNU's option matching accepts the unambiguous value abbreviation: ls --sort=s → sorts by size, rc0. WinuxCmd: ls: invalid argument 's' for '--sort', rc2 — the value enumerator requires the full spelling.

Regression seed

  • ls --quoting-style=locale → rc0 with locale quoting.
  • ls --sort=s on a two-file fixture → size-ordered output, rc0.

Found by the full-audit (argument-form deep audit). Related: #1307 (ls --color operand eating) is the same command's option table, different mechanism.

Activity

  1. added
    bug
    compat-gap
    on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugcompat-gap

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions