Repository navigation
rm: keep missing-operand error after -f with -i/-I - #16028
Merged
sylvestre merged 2 commits intoNov 4, 2026
Merged
Conversation
Logic769
force-pushed
the
rm-force-interactive-missing-operand
branch
from
October 30, 2026 13:02
3d08435 to
f60c024
Compare
sylvestre
reviewed
Nov 2, 2026
sylvestre
reviewed
Nov 2, 2026
sylvestre
force-pushed
the
rm-force-interactive-missing-operand
branch
from
November 3, 2026 00:54
0b9510c to
e69dda6
Compare
Contributor
|
a bunch of jobs are failing |
Logic769
force-pushed
the
rm-force-interactive-missing-operand
branch
from
November 3, 2026 15:43
e69dda6 to
49ff7d9
Compare
Contributor
Author
|
Failure The job fails while building the Reason This is the known |
Contributor
|
Thanks for your PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
rm -f -i(and-f -I) with no operands silently succeeds, but GNUrmstill reports the missing operand.-fonly suppresses prompts; it does not suppress the missing-operand diagnostic.Change
Move the empty-operand check after the interactive/force flags are resolved, so a later
-i/-I/--interactive cancels an earlier-fand the missing-operand error is still raised. Added regression tests for-f -i,-f -Iand-f --interactive-always.Closes #15994