4 ms·
rm can do that... set an alias to ask to confirm every time.
by LtWorf 3y ago
rm can do that... set an alias to ask to confirm every time.
- tombert 3y agoThat's fine on my computer, but if I'm logging into a server I'm not going to do that every time.
- neuromanser 3y agoAs much as we all wish it wouldn't be so, TANSTAAFL. What is your suggestion and how does it maintain compatibility with the existing body of code?
- doubled112 3y agorm doesn’t provide an action summary, does it? Last time I used the interactive option, it needed me to press Y once for every file. If you have a list of 200 files you’re probably not even reading by the end.
- neuromanser 3y agoI wholeheartedly agree that rm -i is a terrible UI. However: what presentation of 200 paths would you not glaze over? Microsoft gets lots of praise for maintaining Backwards Compatibility even if it's Bug Compatibility, yet POSIX gets shit for the same.
- doubled112 3y agoThe presentation suggested in this very thread would work better for me. I generally pay pretty close attention to package apt/pacman/dnf output because it is all right there in front of me. Perhaps ironically, if those programs asked me for each change I would just hold Y until it went away. Needing confirmation of each item is why I glaze over.
- mksybr 3y agoThis seems worse then remembering, because you still have to remember that your safe-by-default command is unsafe-by-default everywhere you're not usually.