Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'can you spell nucular?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
can you spell nucular?
Authored by: mervTormel on May 17, '02 02:37:08PM

wow, that\'s some pretty dangerous stuff. a naked rm -rf * is a recipe for disaster. what happens if the cd fails? where is your pwd that you are nuking?

i would try to implement this without the cd\'ing, e.g.

rm -f -PR /System/Library/Caches/*
...



[ Reply to This | # ]
can you spell nucular?
Authored by: z0mbi3 on May 18, '02 02:43:33PM

you can always try to do something like:
cd /blah/blah && rm -rf *

the && only executes the 2nd (rm) part IF the 1st (cd) part returns 0 (aka SUCCESS)



[ Reply to This | # ]