8000 printf: renders \x as a literal but should error due to missing hexadecimal number · Issue #7097 · uutils/coreutils · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

printf: renders \x as a literal but should error due to missing hexadecimal number #7097

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

Closed
jfinkels opened this issue Jan 8, 2025 · 0 comments · Fixed by #7259
Closed
Assignees

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

Successfully merging a pull request may close this issue.

1 participant
0