Path: utzoo!attcan!uunet!seismo!sundc!rlgvax!hadron!jsdy From: jsdy@hadron.UUCP (Joseph S. D. Yao) Newsgroups: comp.unix.wizards Subject: Re: fixing rm * (was: Worm/Passwords) Message-ID: <812@hadron.UUCP> Date: 22 Nov 88 16:08:28 GMT References: <22401@cornell.UUCP> <4627@rayssd.ray.com> <8563@rpp386.Dallas.TX.US> <125@embossed.UUCP> <672@quintus.UUCP> <1232@atari.UUCP> Reply-To: jsdy@hadron.UUCP (Joseph S. D. Yao) Organization: Hadron, Inc., Fairfax, VA Lines: 20 In article <1232@atari.UUCP> achar@atari.UUCP (Alan Char) writes: >In article <672@quintus.UUCP> ok@quintus.UUCP (Richard A. O'Keefe) writes: >|Now, how _do_ you fix "rm *"? ... > if some shell expansion expanded to more than 5 things, it would >prompt for confirmation: What I did, a decade ago, was to have a list of _commands_ which the shell, after calling glob, would always prompt for after printing out the entire expanded command line. The list included "rm" and "rmdir". No prompting if "glob" was not called. Perhaps I should go resurrect that code. Joe Yao jsdy@hadron.COM (not yet domainised) hadron!jsdy@{uunet.UU.NET,dtix.ARPA,decuac.DEC.COM} arinc,att,avatar,blkcat,cos,decuac,dtix,\ ecogong,empire,gong,grebyn,inco,insight, \!hadron!jsdy kcwc,lepton,netex,netxcom,phw5,rlgvax, / seismo,sms,smsdpg,sundc,uunet /