[ruby-core:84461] Re: [Ruby trunk Bug#14239] warn open("|...")

From: Eric Wong <normalperson@...>
Date: 2017-12-26 08:04:44 UTC
List: ruby-core #84461
[email protected] wrote:
> Recently we found open("|...") is tend to be misused.
> 
> Many people uses this method without concerning that it can run a process.
> 
> I think it should be deprecated.
> 
> So, I propose that ruby warns open("|...").

Agreed.  I assume this includes IO.read/binread/readlines/...?

> (and remove this process invoking feature in long term)

I don't know about removal (maybe Ruby 3.x).  I prefer
we be very conservative when removing (mis)features.

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next