From: Adam@paramedx.demon.co.uk (Adam Lovick)
Subject: Re: Warning! rm command in my DEC Alpha 3000!
Date: Sat, 11 Jun 1994 13:30:41 +0000 [thread overview]
Message-ID: <771341441snz@paramedx.demon.co.uk> (raw)
In-Reply-To: 2t437p$nk9@news.csie.nctu.edu.tw
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
prev parent reply other threads:[~1994-06-11 13:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-06-08 9:32 Warning! rm command in my DEC Alpha 3000! Codex Chen
1994-06-08 12:41 ` Charles M Richmond
1994-06-09 0:44 ` Michael C. Grant
1994-06-11 13:30 ` Adam Lovick [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox