Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,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 whoever 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 Feb 29, '08 02:24:16PM

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 | # ]