-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
rm: shouldn't prompt when stdin is not interactive #7326
Labels
Comments
The current
|
@Chrispin-m Can you open a PR to contribute your patch ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment: Ubuntu 24.04, uutils
main
branch (git commit a2af5d6), GNU coreutils v9.6.19-7386c-modifiedSteps to reproduce:
What happens now: uutils
rm
prints the interactive prompt but immediately terminates, and leaves the directory as-is:What I expected to happen: GNU
rm
prints nothing and removes the directory silently.Notes: this is causing a failure in GNU test file
tests/rm/empty-inacc.sh
. I guess the logic here is that ifstdin
is not an interactive terminal, then the prompting is disabled? I'm not sure.The text was updated successfully, but these errors were encountered: