From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1103af,fb87ccfc9e8baf0a X-Google-Attributes: gid1103af,public X-Google-Thread: f678f,fb87ccfc9e8baf0a X-Google-Attributes: gidf678f,public X-Google-Thread: f66ab,fb87ccfc9e8baf0a X-Google-Attributes: gidf66ab,public X-Google-ArrivalTime: 1995-01-10 12:38:48 PST Path: nntp.gmd.de!newsserver.jvnc.net!news.cac.psu.edu!news.pop.psu.edu!psuvax1!news.ecn.bgu.edu!usenet.ins.cwru.edu!ns.mcs.kent.edu!kira.cc.uakron.edu!malgudi.oar.net!hyperion.wright.edu!valhalla.cs.wright.edu!s001pme From: s001pme@discover.wright.edu (Phil Edwards) Newsgroups: comp.os.linux.misc,comp.unix.osf.misc,comp.os.mach Subject: Re: The big Question Date: 10 Jan 1995 20:38:48 GMT Organization: CCS for CECS, Wright State Distribution: world Message-ID: <3eur8o$4qb@valhalla.cs.wright.edu> References: <3dpmo9$6fh@calvin.st-and.ac.uk> Reply-To: pedwards@valhalla.cs.wright.edu NNTP-Posting-Host: discgate.wright.edu X-Newsreader: TIN [version 1.2 PL2] Xref: nntp.gmd.de comp.os.linux.misc:38003 comp.unix.osf.misc:2323 comp.os.mach:3499 :>Surely expanding wildcards in the shell is a BAD THING ? :> :>rm proggy1.c rm proggy2.c shorthand rm prog* happiness :>typo rm prog * gets expanded to wipe directory. I have very little sympahy for people who constantly complain of this "problem," for two reasons: +Anytime you use 'rm' with a wildcard anywhere in the paramater list, you'd better take three seconds and look up at the screen. If you're using the -r switch, you should read it about five times... :>rm cannot check, because it just gets a list of files expanded :>by the shell and does its duty. Sure it can. That's what -i is for. One of our sysadmins, on the machine that all the newbies use because it's the only one supporting the brainless software, made a global "alias rm rm -i". Perfect for the newbies, the bad typists, and the hotheaded alike. (I got sick of it really quickly and now have "unalias rm" in my .login; it took me all of twelve seconds to add.) Just my $0.04 (inflation, thanks Bill). -- Phil Edwards | The gods do not protect fools. Fools pedwards@valhalla.cs.wright.edu | are protected by more capable fools. --------------------------------| -Larry Niven