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

Reject redundant characters after a quote for a numeric value operand in the printf built-in #94

Open
Tracked by #84
magicant opened this issue Dec 22, 2024 · 0 comments
Labels
good first issue Good for newcomers

Comments

@magicant
Copy link
Owner

magicant commented Dec 22, 2024

Command example:

printf "%d\n" \'3 \"+3 "'-3"

Current behavior:

  • Prints 51, 43, and 45 to stdout.
  • Nothing is written to stderr.
  • The exit status is 0 (Exit_SUCCESS).

Expected behavior:

  • Prints 51, 43, and 45 to stdout as before.
  • Error messages should be printed to stderr saying that the operands "+3 and '-3 contain redundant characters.
  • The exit status is 1 (Exit_FAILURE).

Reference:

@magicant magicant added the good first issue Good for newcomers label Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant