Skip to content

rm: -f -i with no operand should report a missing operand #15994

Closed

Description

@sylvestre

-i after -f cancels -f, so GNU complains about the missing operand. uutils exits 0 silently.

$ rm -f -i; echo $?

GNU:

rm: missing operand
Try 'rm --help' for more information.
1

uutils: exit 0, no output. The same happens with rm -f --interactive=always and rm --force -I.

Reported in #15254 (found by a differential fuzzer; reproduced against GNU coreutils 9.12).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions