Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re^3: /usr/bin/perl -w?

by kaif (Friar)
on Jun 21, 2005 at 06:20 UTC ( #468573=note: print w/replies, xml ) Need Help??

in reply to Re^2: /usr/bin/perl -w?
in thread /usr/bin/perl -w?

And Unix commands in general, too! Because of shell design and such, typing rm * in a directory which contains a file named -rf could delete everything (except the file -rf)! You should do rm -- * instead. I have actually been bitten by this once or twice, but luckily not by -rf but something more mundane.

Replies are listed 'Best First'.
Re^4: /usr/bin/perl -w?
by jasonk (Parson) on Jun 21, 2005 at 13:17 UTC

    I've seen some people use this to their advantage too, by creating files called '-i' in directories containing things they don't want to lose. That way an inadvertant rm * will become interactive.

    We're not surrounded, we're in a target-rich environment!

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://468573]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2023-02-08 03:03 GMT
Find Nodes?
    Voting Booth?
    I prefer not to run the latest version of Perl because:

    Results (40 votes). Check out past polls.