Skip to content

[gap] factor: 0 and 1 are printed with themselves as factors #1002

Closed

Description

@caomengxuan666

Summary

GNU factor 0 and factor 1 print just 0: / 1: (empty factor list). WinuxCmd appends the number itself: 0: 0, 1: 1.

Repro

winuxcmd.exe factor 0
winuxcmd.exe factor 1

GNU coreutils 8.32

0:
1:

WinuxCmd 1.0.6

0: 0
1: 1

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