-rf
Posted April 4th, 2003 @ 08:34am by Erik J. Barzeski
Just don't create a file called -rf.
-- Larry Wall in <11393@jpl-devvax.JPL.NASA.GOV>
I wonder how many years ago that was, because surely Larry knows that you can "rm -- -rf." But then again, in Perl, who knows. Maybe that'll cause issues. Anyway, how often has this ever come up? Who has ever named a file -rf?
This post is mostly a reminder to me to learn Perl again dammit. But it's kinda funny too.
Posted 04 Apr 2003 at 4:35pm #
Hmm. In circumstances where one ends up with some weird characters in a filename I always refer to it as ./FILENAME i.e. "rm ./-rf"