Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!necntc!ames!ptsfa!well!ustel From: ustel@well.UUCP (Mark Hargrove) Newsgroups: comp.cog-eng,comp.unix.xenix,comp.unix.wizards Subject: Re: Re: Request for human interface design anecdotes Message-ID: <4472@well.UUCP> Date: Wed, 18-Nov-87 00:12:28 EST Article-I.D.: well.4472 Posted: Wed Nov 18 00:12:28 1987 Date-Received: Sat, 21-Nov-87 11:11:14 EST References: <763@rocky.STANFORD.EDU> Lines: 31 Xref: mnetor comp.cog-eng:300 comp.unix.xenix:1173 comp.unix.wizards:5511 > Xref: well comp.cog-eng:280 comp.unix.xenix:1083 comp.unix.wizards:5329 > > In article <1402@cuuxb.ATT.COM> dlm@cuuxb.UUCP (Dennis L. Mumaugh) writes: > [We're talking about "rm *". Guess why I have a csh alias for rm that > always asks about every file. When I'm absolutely sure that I want to > delete a number of files and I don't want to answer questions, I pipe > the whole command off to sh.] In a similar vein, we have a shell function defined in /etc/profile for our Bourne Shell users: rm(){ if [ ! -d /usr/tmp/$LOGNAME ] ; then mkdir /usr/tmp/$LOGNAME fi mv $* /usr/tmp/$LOGNAME } Then we have /usr/lbin/reallyrm linked to /bin/rm for when you really mean it. A once a week cron script cleans out /usr/tmp right AFTER a backup. This DOESN'T fix the ol' slip of the fingers that results in reallyrm * .o <---you only see the space AFTER you hit return ;-) but it HAS saved the day enough times to make it worth the 10 minutes it took to implement. Mark Hargrove U.S. TeleCenters {backbones}!hplabs!well!ustel