Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Do Not Alias this to rm' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Do Not Alias this to rm
Authored by: kerbaugh on Oct 21, '02 12:57:16AM

makefiles regularly use the rm command to clean up and this script will cause the make to fail. I've written a script like this but it faithfully emulates the rm command. It uses CpMac to move files to ~/.Trash, supports recursive removal, handles spaces in quoted filenames, (which this script does not), and appends " copy" to existing files. (like the finder) It can safely be used as rm but despite what my website says, I currently name the script rmm on my Mac. The reason is that installations can still put an incredible amount of junk in the Trash. Those interested in my script can find it at its webpage:

http://www.cs.ecu.edu/~kerbaugh/rm/rm.html



[ Reply to This | # ]