3 ms·
why would a rm wrapper, with move to trash behavior by default, break scripts?
by alperakgun 13y ago
why would a rm wrapper, with move to trash behavior by default, break scripts?
- koenigdavidmj 13y agoSimply replacing 'rm' with a no-op or error command (or removing it entirely) would break scripts. Trash can would not.
- tankenmate 13y agoYou're right directly it wouldn't break scripts; a whole bunch of stuff starts breaking once the disk fills though.
- TallGuyShort 13y agoIt wouldn't necessarily - it just has to be 100% transparent. A simple alias would probably break a lot of scripts, but if you were very thorough or provided an entirely separate tool for users - that's what I'm suggesting would do this. In reality, I was really just thinking allowed - I think rm's fine as it is. To do this while overcoming the shortcomings I mentioned in DOS's simple approach requires a system more complex than the original problem is worth, IMO.
- mzs 13y agoI've seen a script that uses flock and rm, it would break.