Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jfinkels opened this issue Jan 24, 2025 · 0 comments
Open

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

jfinkels opened this issue Jan 24, 2025 · 0 comments

Comments

@jfinkels
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant