Gentoo Archives: gentoo-dev

From: purslow@×××××××××.ca
To: gentoo-user@l.g.o
Cc: Gentoo Devt <gentoo-dev@l.g.o>
Subject: [gentoo-dev] rm tragedies: was how to clean the "/tmp" dir
Date: Sun, 30 May 2004 00:49:45
Message-Id: 20040530004921.GA3517@sympatico.ca
1 040529 Simon Roby wrote:
2 > On May 29, 2004 0527, Aaron Walker wrote:
3 >> purslow@×××××××××.ca wrote:
4 >>> it's always best to stop & look before hitting Enter w 'rm -rf *',
5 >>> esp to check you are in the correct dir & know wh files/dirs are there.
6 >> I fell victim to `rm -fr` a few weeks ago after being up 30 hr
7 -- horrifying result snipped --
8 > I did a `rm -rf *` in my home directory.
9 -- horrifying result snipped --
10
11 given that 'rm' automatically rejects '..' & '.' in these circumstances,
12 it really shd also reject '/' & '~' (incl '/home/username').
13 i wonder whether the Gentoo developers cd fix the Gentoo version to do that ?
14
15 --
16 ========================,,============================================
17 SUPPORT ___________//___, Philip Webb : purslow@××××××××××××××.ca
18 ELECTRIC /] [] [] [] [] []| Centre for Urban & Community Studies
19 TRANSIT `-O----------O---' University of Toronto
20
21 --
22 gentoo-dev@g.o mailing list

Replies