Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Good-bye Unix filter idiom

by Anonymous Monk
on Sep 07, 2012 at 02:40 UTC ( #992227=note: print w/ replies, xml ) Need Help??


in reply to Re: Good-bye Unix filter idiom
in thread Good-bye Unix filter idiom

What is to stop you (or they) from entering that command directly into the command prompt you (or they) are using?

The danger is you can have a filename like  "rm -rf / |" so a ./foobar * ends up executing the command (and deleting files ) instead of opening that file

A workaround is to perl -MARGV::readonly foobar *


Comment on Re^2: Good-bye Unix filter idiom
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (20)
As of 2013-05-22 19:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (470 votes), past polls