Path: utzoo!attcan!uunet!husc6!mailrus!cornell!uw-beaver!uw-june!uw-entropy!mica!charlie From: charlie@mica.stat.washington.edu (Charlie Geyer) Newsgroups: comp.unix.wizards Subject: Re: fixing rm * (was: Worm/Passwords) Message-ID: <1077@entropy.ms.washington.edu> Date: 24 Nov 88 04:03:21 GMT References: <22401@cornell.UUCP> <4627@rayssd.ray.com> <8563@rpp386.Dallas.TX.US> <125@embossed.UUCP> <672@quintus.UUCP> <1232@atari.UUCP> <1615@basser.oz> <1067@entropy.ms.washington.edu> <2508@aplcomm.jhuapl.edu> Sender: news@entropy.ms.washington.edu Reply-To: charlie@mica.stat.washington.edu (Charlie Geyer). Organization: UW Statistics, Seattle Lines: 37 In article <2508@aplcomm.jhuapl.edu> trn@aplcomm.jhuapl.edu (Tony Nardo) writes: >In article <1067@entropy.ms.washington.edu> charlie@mica.stat.washington.edu >(Charlie Geyer) writes: >>This is all very easy. If you don't like rm(1) put >> >> alias foo rm -i >> >>in your .cshrc... > >A half-measure. If you *really* don't like rm(1), put > > alias rm "rm -i" > >in your .cshrc file. That way, if you want to use rm without the -i switch, >you have to do a little extra work (/bin/rm). By the same token, > > alias cp "cp -i" > >can protect you from yourself with file copying. Ah yes. Well actually I do have alias rm rm -i alias cp cp -i alias mv mv -i set noclobber in all of my .cshrc files. I just didn't want to *recommend* such a practice knowing I'd get flamed for it. Only once or twice have I forgotten with a new account that I haven't set these aliases *yet*. It is a bit of a pain embedding /bin/rm and /bin/mv in c-shell scripts I write. Can anyone tell me if this is nonportable? Don't tell me that if I would just write Bourne shell scripts that I wouldn't have to worry about the stupid alias. I know that. Also don't tell me the c-shell is nonportable.