[#43610] Re: [ruby-list:48149] Re: requireが配列を取れたら便利だと思うんだけど.. — Hiroshi Nakamura <nakahiro@...>

ruby-listから持って来ました。でも続かなそう。

12 messages 2011/06/02

[#43643] DateTime.new! and DateTime.jd — Aaron Patterson <aaron.patterson@...>

こんにちは、アーロンです。

25 messages 2011/06/07
[#43647] Re: DateTime.new! and DateTime.jd — Tadayoshi Funaba <tadf@...> 2011/06/07

blocker はお前だろ。

[#43648] Re: DateTime.new! and DateTime.jd — Yukihiro Matsumoto <matz@...> 2011/06/07

まつもと ゆきひろです

[#43651] Re: DateTime.new! and DateTime.jd — Tadayoshi Funaba <tadf@...> 2011/06/07

> うーん、ただでさえ日英のコミュニケーション障壁があるのに、よ

[#43653] Re: DateTime.new! and DateTime.jd — Aaron Patterson <aaron.patterson@...> 2011/06/07

2011/6/7 Tadayoshi Funaba <tadf@dotrb.org>:

[#43657] Re: DateTime.new! and DateTime.jd — Tadayoshi Funaba <tadf@...> 2011/06/07

皆さんってのに俺は入ってないみたいだな。

[#43661] Re: DateTime.new! and DateTime.jd — Yukihiro Matsumoto <matz@...> 2011/06/07

まつもと ゆきひろです

[#43662] Re: DateTime.new! and DateTime.jd — Tadayoshi Funaba <tadf@...> 2011/06/07

> Aaronが言ってる「リリース」は1.9.3のことだと思いますよ。

[#43645] Re: [ruby-core:36778] Re: 1.8.7 release next month — Urabe Shyouhei <shyouhei@...>

Moving to ruby-dev to understand strategies of backporting the Tk

13 messages 2011/06/07

[#43787] [Ruby 1.9 - Feature #4878][Open] CMath に frexp, ldexp, hypot の3関数は不要ではないか — Kenta Murata <muraken@...>

24 messages 2011/06/13
[#43788] Re: [Ruby 1.9 - Feature #4878][Open] CMath に frexp, ldexp, hypot の3関数は不要ではないか — Yukihiro Matsumoto <matz@...> 2011/06/13

まつもと ゆきひろです

[#43789] Re: [Ruby 1.9 - Feature #4878][Open] CMath に frexp, ldexp, hypot の3関数は不要ではないか — Tadayoshi Funaba <tadf@...> 2011/06/13

もう結論が出てしまったようですが、これは、元々 lib/complex.rb にあった

[#43794] Re: [Ruby 1.9 - Feature #4878][Open] CMath に frexp, ldexp, hypot の3関数は不要ではないか — Kenta Murata <muraken@...> 2011/06/13

むらたです。

[#43795] Re: [Ruby 1.9 - Feature #4878][Open] CMath に frexp, ldexp, hypot の3関数は不要ではないか — Tadayoshi Funaba <tadf@...> 2011/06/13

> complex.rb をロードすると Math が CMath 相当に置き換わりますから、

[#43797] Re: [Ruby 1.9 - Feature #4878][Open] CMath に frexp, ldexp, hypot の3関数は不要ではないか — Kenta Murata <muraken@...> 2011/06/14

むらたです。

[#43799] Re: [Ruby 1.9 - Feature #4878][Open] CMath に frexp, ldexp, hypot の3関数は不要ではないか — Yukihiro Matsumoto <matz@...> 2011/06/14

まつもと ゆきひろです

[#43800] Re: [Ruby 1.9 - Feature #4878][Open] CMath に frexp, ldexp, hypot の3関数は不要ではないか — Kenta Murata <muraken@...> 2011/06/14

むらたです。

[#43803] Re: [Ruby 1.9 - Feature #4878][Open] CMath に frexp, ldexp, hypot の3関数は不要ではないか — Tadayoshi Funaba <tadf@...> 2011/06/14

> これに相当する事をやっているのが complex.rb なので、

[#43806] Re: [Ruby 1.9 - Feature #4878][Open] CMath に frexp, ldexp, hypot の3関数は不要ではないか — Yusuke ENDOH <mame@...> 2011/06/14

遠藤です。

[#43807] Re: [Ruby 1.9 - Feature #4878][Open] CMath に frexp, ldexp, hypot の3関数は不要ではないか — Tadayoshi Funaba <tadf@...> 2011/06/14

> 定義域を増やすだけにしよう、ということですよね。賛成です。

[#43809] Re: [Ruby 1.9 - Feature #4878][Open] CMath に frexp, ldexp, hypot の3関数は不要ではないか — Yusuke ENDOH <mame@...> 2011/06/14

2011年6月14日22:17 Tadayoshi Funaba <tadf@dotrb.org>:

[#43810] Re: [Ruby 1.9 - Feature #4878][Open] CMath に frexp, ldexp, hypot の3関数は不要ではないか — Tadayoshi Funaba <tadf@...> 2011/06/14

> 互換性がないという点では同じ話だと思うのですが……。

[#43811] Re: [Ruby 1.9 - Feature #4878][Open] CMath に frexp, ldexp, hypot の3関数は不要ではないか — Yusuke ENDOH <mame@...> 2011/06/14

2011年6月14日23:02 Tadayoshi Funaba <tadf@dotrb.org>:

[#43812] Re: [Ruby 1.9 - Feature #4878][Open] CMath に frexp, ldexp, hypot の3関数は不要ではないか — Tadayoshi Funaba <tadf@...> 2011/06/14

> いやあ、5 月末の feature freeze 時点では -2 を返していたはずなんですが、

[#43852] [Ruby 1.9 - Bug #4909][Open] trapハンドラは再入されてはいけないのではないか? — Motohiro KOSAKI <kosaki.motohiro@...>

11 messages 2011/06/20

[ruby-dev:43906] [Ruby 1.9 - Bug #3348][Assigned] rubyspec: Kernel.spawn redirects both STDERR and STDOUT to the given name ERROR

From: Yui NARUSE <redmine@...>
Date: 2011-06-26 05:57:07 UTC
List: ruby-dev #43906
Issue #3348 has been updated by Yui NARUSE.

Status changed from Open to Assigned
Assignee set to Akira Tanaka
Target version set to 1.9.x
ruby -v set to 1.9


----------------------------------------
Bug #3348: rubyspec: Kernel.spawn redirects both STDERR and STDOUT  to the given name ERROR
http://redmine.ruby-lang.org/issues/3348

Author: Yusuke Endoh
Status: Assigned
Priority: Low
Assignee: Akira Tanaka
Category: 
Target version: 1.9.x
ruby -v: 1.9


=begin
 遠藤です。
 
 spawn のリダイレクトの引数で :out => "foo" としたとき、ファイル foo が存在
 しなければ作ってくれますが、[:out, :err] => "foo" だと作ってくれません。
 
   ruby -e 'pid = spawn("echo", "foo", [:out, :err] => "foo"); Proces.wait pid'
 
 これは意図的でしょうか。
 うっとうしいことに、rubyspec がこの挙動に依存して失敗するようになりました。
 
 配列の中がすべて :out か :err だったら O_CREAT|O_TRUNC にするパッチです。
 反対がなければコミットします。
 
 
 diff --git a/process.c b/process.c
 index 9e52392..4ca6ed3 100644
 --- a/process.c
 +++ b/process.c
 @@ -1342,7 +1342,19 @@ check_exec_redirect(VALUE key, VALUE val, VALUE options)
              key = check_exec_redirect_fd(key);
          if (FIXNUM_P(key) && (FIX2INT(key) == 1 || FIX2INT(key) == 2))
              flags = INT2NUM(O_WRONLY|O_CREAT|O_TRUNC);
 -        else
 +        else if (TYPE(key) == T_ARRAY) {
 +	    int i;
 +	    for (i = 0; i < RARRAY_LEN(key); i++) {
 +		VALUE v = RARRAY_PTR(key)[i];
 +		VALUE fd = check_exec_redirect_fd(v);
 +		if (FIX2INT(fd) != 1 && FIX2INT(fd) != 2) break;
 +	    }
 +	    if (i == RARRAY_LEN(key))
 +		flags = INT2NUM(O_WRONLY|O_CREAT|O_TRUNC);
 +	    else
 +		flags = INT2NUM(O_RDONLY);
 +	}
 +	else
              flags = INT2NUM(O_RDONLY);
          perm = INT2FIX(0644);
          param = hide_obj(rb_ary_new3(3, hide_obj(rb_str_dup(path)),
 
 -- 
 Yusuke Endoh <mame@tsg.ne.jp>
=end



-- 
http://redmine.ruby-lang.org

In This Thread

Prev Next