News for hackers. Stuff that matters.
Re:Ooops. by neanderdog on Thursday June 16, 2011 @11:16AM (#2661591)
rmtrash

http://www.nightproductions.net/cli.htm

I prefer 'brew install rmtrash'

Re:Ooops. by JonnieCache on Thursday June 16, 2011 @11:19AM (#2661604)
There's lots of stuff like that out there, I'm talking about something I can actually replace the rm binary with, a wrapper that precisely maintains the rm interface as described here: http://developer.apple.com/library/mac/#documentation/Darwin...

I like the idea of actually wrapping the unlink syscall, but I have no idea if/how darwin allows that.

Re:Ooops. by ordinary on Thursday June 16, 2011 @12:58PM (#2662099)
You can alias trash-cli over rm, though it ignores -i, -r and -f and instead runs recursively, forced and non-interactively by default.