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

Re: Creative and *routine* use of so-called "magic" ARGV (was [perl #2783] Security of ARGV using 2-argument open)

Thread Previous | Thread Next
From:
David Nicol
Date:
July 29, 2008 07:20
Subject:
Re: Creative and *routine* use of so-called "magic" ARGV (was [perl #2783] Security of ARGV using 2-argument open)
Message ID:
934f64a20807290720r5f90c62dqbae84193c08242ba@mail.gmail.com
On Tue, Jul 29, 2008 at 8:22 AM, Mark Mielke <mark@mark.mielke.cc> wrote:
> Specifically, \Q...\E will prefix certain characters with '\', and this will
> make it impossible to represent file names with the same special characters
> (the theoretical filenames with '|', '<' or '>') but that are not escaped in
> the file name.

phooey.

Prefixing < takes care of opening and reading files with pipes and so
on in them, but leading/trailing space seems impossible to represent
with a 2-arg open.


-- 
Cheer up, sad person

Thread Previous | 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