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: renders \x as a literal but should error due to missing hexadecimal number #7097

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

Comments

@jfinkels
Copy link
Collaborator

jfinkels commented Jan 8, 2025

Steps to reproduce:

printf '\x'

What happens now: uutils printf renders this as a literal, as-is:

\x

What I expected to happen: GNU printf terminates with an error message:

printf: missing hexadecimal number in escape

Notes: this is causing a failure in the GNU test file tests/printf/printf.sh.

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