develooper Front page | perl.perl5.porters | Postings from July 2008

FW: Alarums and Excursions (was [perl #2783] Security of ARGV using 2-argument open)

Thread Next
From:
Ed Avis
Date:
July 28, 2008 09:58
Subject:
FW: Alarums and Excursions (was [perl #2783] Security of ARGV using 2-argument open)
Message ID:
7A5C308A1A3D554B8B8C0E331F7D2BB10ECCB8@wcl-exc.wcl.local
Rafael Garcia-Suarez wrote:

>We can add a simple way to restore the old behaviour, though : 
>a command-line flag (-N and -P were suggested as counterparts 
>to -n and -p. -P was conveniently made free previously:) 

I don't think it matters much if -n and -p continue being the magical file loop as at present.  For quick oneliners you often want the extra power, and don't really care about whether it's safe in general.

OTOH, making -n and -p boring commands (so they can be safely be used in shell programming, etc.) and adding -N and -P would also work well.

-- 
Ed Avis <eda@waniasset.com>

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About