Skip to content

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

Description

@magicant

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:

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions