From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,fe85a49997a29cad X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-06-11 07:45:03 PST Newsgroups: comp.sys.dec From: Adam@paramedx.demon.co.uk (Adam Lovick) Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!swrinde!pipex!uknet!demon!paramedx.demon.co.uk!Adam Subject: Re: Warning! rm command in my DEC Alpha 3000! References: <2t437p$nk9@news.csie.nctu.edu.tw> Organization: home Reply-To: adam@paramedx.demon.co.uk X-Newsreader: Demon Internet Simple News v1.27 Date: Sat, 11 Jun 1994 13:30:41 +0000 Message-ID: <771341441snz@paramedx.demon.co.uk> Sender: usenet@demon.co.uk In article <2t437p$nk9@news.csie.nctu.edu.tw> ambrosia@chpi.edu.tw "Codex Chen" writes: > I once ran one command in my DEC Alpha 3000 with OSF/1... > rm -rf /tmp/.*& > Then it seemed deleting my /bin and other directories... > I know it is forbidden for a rm command when trying 'rm ..' > or 'rm .*'in SunOS...but alas, in this heck OSF/1 it didn't > protect the '..' not to be deleted... > Is it a bug? Or should I get one patch for this command? > Thanks in advance... > -- It's not a bug, rm -r just searches down. Best if you try: find /tmp -name .\* -print ... then when you *know* you're right rm `find /tmp -name .\* -print` It takes longer but at least your heart won't stop |-( ) -- Adam Lovick