Skip to content

[gap] groups/id/stat: unresolvable group name prints literal 'None' #1024

Closed

Description

@caomengxuan666

Summary

When a group ID has no resolvable name, GNU prints the numeric ID (and groups/id report the lookup failure). WinuxCmd prints the literal string None and exits 0.

Repro

winuxcmd.exe groups
winuxcmd.exe id -gn
winuxcmd.exe stat -c '%G' f1.txt

GNU coreutils 8.32 (cygwin)

$ groups
groups: cannot find name for group ID 197121
197121                                          (stderr + exit 1)
$ id -gn
id: cannot find name for group ID 197121
197121                                          (stderr + exit 1)
$ stat -c %G f1.txt
UNKNOWN

WinuxCmd 1.0.6

$ groups    -> None   (exit 0)
$ id -gn    -> None   (exit 0)
$ stat -c %G f1.txt -> None   (exit 0)

Activity

  1. added
    bug
    compat-gap
    on Sep 14, 2026
  2. caomengxuan666 commented on Sep 14, 2026

    @caomengxuan666
    MemberAuthor

    Fixed in release/v1.0.6 — verified against GNU coreutils 9.4 (WSL) with byte-identical or semantically identical output. See the GNU-parity commits on this branch.

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

    bugcompat-gap

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions