ext_181967: (Default)
Waider ([identity profile] waider.livejournal.com) wrote in [personal profile] waider 2005-01-21 05:55 pm (UTC)

Well, the problem there is that Linux has rm aliased to 'rm -i',

Oh, that. See, that could as easily have been my own setup (and has been, in the past, until I got so used to reflexively hitting 'y' after typing 'rm' that it became useless). It doesn't address the basic issue of doing a stat() call to determine that it's a directory, asking you if you want to remove it, and then telling you it can't unlink it because it's a directory. if ( not recursive && directory ) { go directly to error message, skipping prompt } isn't exactly hard to code. I mean, if I do rm -i foo when foo doesn't exist, it goes straight to the error message without first asking me if I want to delete the nonexistent file.

I consider this dead horse to be well and truly flogged at this point.

Post a comment in response:

This account has disabled anonymous posting.
(will be screened if not validated)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org