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

Re: New feature proposal : <<>> to disable magic open of ARGV

Thread Previous | Thread Next
From:
Ed Avis
Date:
July 28, 2014 02:06
Subject:
Re: New feature proposal : <<>> to disable magic open of ARGV
Message ID:
loom.20140728T040254-177@post.gmane.org
...and now that you mention the magic filename - I begin to think that -
should still mean standard input, even though >foo does not mean to weirdly
overwrite a file called foo.  The expectations around this are subtle...

In a way having - for stdin is more reasonable because arguments beginning
with that character are already 'reserved' as options (for all that the shell
wildcard expansion ignores this convention).

But I wouldn't want to let quibbles over - get in the way of the more
important fix of eliminating the unsafe behaviour on <>|.

-- 
Ed Avis <eda@waniasset.com>


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