Skip to content

printf: should warn on excess arguments but doesn't #7203

@jfinkels

Description

@jfinkels

Environment: Ubuntu 20.04, uutils main branch (git commit ceb0785), GNU coreutils v9.6.3-3189c-dirty

Steps to reproduce:

printf "B\n" 1

What happens now: uutils printf prints B with no warning:

B

What I expected to happen: GNU printf prints B with a warning about the excess argument 1:

B
printf: warning: ignoring excess arguments, starting with ‘1’

Notes: this is causing a failure in GNU test file tests/printf/printf-cov.pl.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions