home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!mintaka.lcs.mit.edu!ogicse!reed!romulus!merlyn
- From: merlyn@romulus.reed.edu (Randal L. Schwartz)
- Newsgroups: comp.unix.questions
- Subject: Re: executing down directory tree
- Message-ID: <MERLYN.92Aug14072606@romulus.reed.edu>
- Date: 14 Aug 92 14:26:10 GMT
- References: <_a4m!xr.bosak@netcom.com> <1992Aug14.030634.12814@amhux2.amherst.edu>
- Sender: news@reed.edu (USENET News System)
- Organization: Reed College
- Lines: 26
- In-Reply-To: twpierce@amhux1.amherst.edu's message of 14 Aug 92 03:06:34 GMT
-
- In article <1992Aug14.030634.12814@amhux2.amherst.edu> twpierce@amhux1.amherst.edu (Tim Pierce) writes:
- Indeed it wasn't, in which case rm -rf sub-dir-name would be terrible
- advice. All systems I've been on -- and I would think any moderately
- sane system -- defaults to interactive mode for rm -r.
-
- If your rm is in interactive mode, some unthinking but bighearted
- system administrator created an alias to overload the "rm" command to
- assist lame users like you so that he/she wouldn't have to do as many
- file restores. But such an admin forgets that sometimes you get
- popped into a real shell (/bin/sh), and when you try an "rm" there...
- boom, no interactivity, and away go your files.
-
- PLEASE DON'T OVERLOAD STANDARD COMMANDS WITH ALIASES.
-
- Sysadms, if you want an interactive rm, create an alias called "del"
- and tell people to do *that* instead of rm. Then at least the worst
- that would happen is that it would say "del: not found" instead of
- blasting all the files away.
-
- Grumble, grumble. No wonder people think Unix is hard to learn. Sheesh.
-
- Just another Unix hacker since 1977,
- --
- Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095
- merlyn@reed.edu (guest account) merlyn@ora.com (better for permanent record)
- cute quote: "Welcome to Portland, Oregon -- home of the California Raisins!"
-