Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Ah yes, the classic `rm --undo` saved me so many times. No, command-line interfaces rarely offer undo. The onus is on the user to not do irreversible things when they may need to be reversed.

Git, coincidentally, does have something equivalent to undo history: the reflog.



"rm" was made in the '70s. Git was made in the '00s.


Nothing prevents rm from being made to “put in trash bin” in the year 2022. Your argument seems weak. rm removes. mv moves. If you want mv, use mv.


Nobody said that rm was perfect ;)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: