waider: (Default)
waider ([personal profile] waider) wrote2005-01-20 05:24 pm
Entry tags:

stupid unix

[root@barney tmp]# rm isomnt
rm: remove directory `isomnt'? y
rm: cannot remove directory `isomnt': Is a directory
ext_8707: Taken in front of Carnegie Hall (bofh)

[identity profile] ronebofh.livejournal.com 2005-01-21 02:14 am (UTC)(link)
Don't blame UNIX for that, Billy.
ext_181967: (Default)

[identity profile] waider.livejournal.com 2005-01-21 10:19 am (UTC)(link)
Now, Ron, really. If you're going to make a comment like that, you're going to have to provide me with a long and rambling story about why Ken and Dennis aren't responsible and how it's really Richard's fault. In my limited (and possibly rose-tinted, or at least Guinness-tinted) recollection, I have not encountered a single Unix system where something similar to the above does not happen. Of course, I've been immersed in Linux systems for the last two and a half years so it's entirely possible that I've overwritten the memory of anything that did it right (whatever that might mean in this context)
ext_8707: Taken in front of Carnegie Hall (LISA `97)

[identity profile] ronebofh.livejournal.com 2005-01-21 05:36 pm (UTC)(link)
Well, the problem there is that Linux has rm aliased to 'rm -i', which is why it politely asks if you really wanna remove it, only to tell you later, whoopsie, i can't do that. As for why we really needed an rmdir command in addition to rm, that one's definitely outside of my ken. But that ceased bugging me a while ago and i've actually come to consider it a feature.
ext_181967: (Default)

[identity profile] waider.livejournal.com 2005-01-21 05:55 pm (UTC)(link)
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.