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: spfolly on Fri, Feb 29 2008 at 9:19AM PST
A nice idea, but you haven't fully appreciated how the Trash works. This is fine for deleting stuff from your home folder, but if you use the Finder to delete stuff from, for example, a USB memory key, then the files get moved to a .Trashes folder on that volume. (And then a directory within that based on your UID.) The Trash folder viewable from the finder is a combination of ~/.Trash and .Trashes folders in mounted volumes.

[ Reply to This | # ]