While we're on the subject, has anyone successfully found/created a replacement for rm on OS X that moves files to the trash, but doesn't break the interface of rm for use in scripts?
http://www.nightproductions.net/cli.htm
I prefer 'brew install rmtrash'
I like the idea of actually wrapping the unlink syscall, but I have no idea if/how darwin allows that.