Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!


Click here to return to the 'A shell function to make 'rm' move files to the trash' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
A shell function to make 'rm' move files to the trash
Authored by: Dibbler on Fri, Feb 29 2008 at 2:24PM PST
Here's the problem. When you change the default behavior of existing commands, you're not only changing the configuration of one computer. You're changing your own behavior as a user. So whenever you're using someone else's computer (and don't assume that you won't) you constantly have to fight the habits formed by using altered commands on your own computer.

That's why you should only create new commands instead of redefining existing ones. If you accidently "rm wrongfile" on someone else's computer, you've just lost their data. However if you "trash wrongfile" you've only entered an unrecognized command.


[ Reply to This | # ]