Unexpected / mildly dangerous behavior on delete #2025
Closed
AlexanderTheGr8-gr
started this conversation in
General
Replies: 1 comment 1 reply
-
The first prompt is for forceful removal. If you decline it, it will do interactive removal for each file.
That's just how it's been working since forever. Because |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So, upon playing with it I realized the following:
-Trash: trash '.gitignore'?
-Hits the arrows: canceled
-Rm: rm -rf 'CHANGELOG'?
-Hits the arrows: rm: remove regular file '.../.gitignore'?
O.O (Raises hands as if pointed by a gun! xD) Omg, NO!!!! hahahahahahahaha
I would expect it to work for both same ways.
Actually I have used the arrow keys to cancel an action quite some times now,
it became a habit (can't quite remember which action right now though...).
So it would be nice to keep it, but please both ways.
I don't know, how do you people see it?
Also, I detected the responsible part on nnn.c here:
and of course for me I am changing it to
return '\0';Other than that, does this line of code have some other use I don't know?
Or is it literally for the reason of, when not using trash at all or when specifically requiring rm -rf, to try to confirm again for deletion?
Beta Was this translation helpful? Give feedback.
All reactions