[#65451] [ruby-trunk - Feature #10333] [PATCH 3/1] optimize: "yoda literal" == string — ko1@...

Issue #10333 has been updated by Koichi Sasada.

9 messages 2014/10/07

[ruby-core:65612] Re: [ruby-trunk - Bug #10362] spawn doesn't raise exception on redirection error

From: Eric Wong <normalperson@...>
Date: 2014-10-11 05:42:17 UTC
List: ruby-core #65612
On the other hand, maybe we should allow Ruby-level options to `system'
to raise, but continue hiding errors when running the command itself.

In other words:

	# continue old 1.8 behavior if redirect is done via shell
	# (n.b. this example is bad practice, but just an example)
	system('true >bad/file.txt') -> nil

So I think the original example by Dmitry should raise:

	system('true', out: %w(bad/file.txt w)) -> Errno...

Maybe this (potentially incompatible) change can be acceptable
for 2.2 (if not, then for Ruby 3.0)

In This Thread

Prev Next