rone: (Default)
entombed in the shrine of zeroes and ones ([personal profile] rone) wrote2009-11-20 03:45 am
Entry tags:

sometimes i suspect that i'm not as funny as i think i am

Nix wrote:

One person at work keeps a file named -i in important directories on Solaris boxes, just to catch rm *'s in them.

Do they keep an extra pair of underpants in their car in case they shit themselves on the way to work?

[identity profile] baljemmett.livejournal.com 2009-11-20 12:08 pm (UTC)(link)
I know several programmers who probably should... *bangs head on desk, head*

[identity profile] tau-iota-mu-c.livejournal.com 2009-11-20 02:58 pm (UTC)(link)
Pity it wouldn't catch the vast majority of accidental occurences of erroneous 'rm's.

rm -rf foo/* expanding to
rm -rf foo/-i foo/... does not do anything other than remove the crap you were trying to save.

[identity profile] baljemmett.livejournal.com 2009-11-20 03:19 pm (UTC)(link)
Yes indeed -- I was referring to the underpants, though! When it comes to things like files named '-i', I lean more towards learning-by-painful-experience than safety-nets-of-dubious-effectiveness.