Just don't create a file called -rf. :-)
About this quote
- What does it mean?
- Avoid creating a file named '-rf' because it can be interpreted as a command option.
- In plain terms
- Don't name a file '-rf' to prevent command-line confusion.
- What can you take from it?
- Choose filenames that don't start with hyphens.
Where it applies
Putting it to work
Questions to consider
- What other filenames cause command issues?
- How can I safely handle hyphenated names?
Another view
Renaming may be cumbersome in existing projects.
More from Larry Wall
I won't mention any names, because I don't want to get sun4's into trouble... :-)
Permalink to quote #36 last|perl -pe '$_ x=/(..:..)...(.*)/&&$1ge$1&&$1lt$2' That's gonna be tough for Randal to beat... :-)
Permalink to quote #38 It's there as a sop to former Ada programmers. :-)
Permalink to quote #35
Related quotes
America decided we were going to stand by and let Americans die at the hands of terrorists a long time ago.
Tommy FranksTommy Franks quote #2 I'm anything but skittish about government, but I must say this administration is truly scary and, given the times we live in, frighteningly dangerous.
John DeanJohn Dean quote #2 Don't go to parties with metal detectors. Sure, it feels safe inside. But what about all those niggers waiting outside with guns? They know you ain't got one.
Chris RockChris Rock quote #3