home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / question / 10077 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  1.8 KB

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