Skip to content

stat: the last of --printf / --format should win #15993

Closed

Description

@sylvestre
$ touch a.txt
$ stat --printf=X --format=Y a.txt

GNU prints Y followed by a newline (--format came last). uutils prints X with no newline.

Reported in #15254 (found by a differential fuzzer; reproduced against GNU coreutils 9.12).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions