Skip to content

[compat] fmt: line-wrapping differs from gnu implementation in some situations (uutils#10095) #280

Closed

Description

@caomengxuan666

上游

复现

printf "one two three four five six seven\n" | winuxcmd fmt -w 10

实测对比(fmt wrap,grc=0 wrc=0)

GNU: one two
three
four five
six seven
WC : one two
three four
five six
seven

状态

GAP-待修:已复现的真语义差距,未修复。修复建议见 GAP_REPORT.md。

Activity

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

    @caomengxuan666
    MemberAuthor

    Fixed in 4348e1d — verified against WSL GNU coreutils 9.4 (GNU echo arg scanning, comm sorted-order warning, csplit error exit, fold -c GNU 9.5 option, tr/fmt/pr/head/ptx/yes diagnostics). See issues/report-textutils.md and report-printf-od.md.

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

    compat-gapuutils

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions