[#23168] File.fnmatch のリファクタリング — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>

山本です。

13 messages 2004/03/08

[#23192] File.fnmatch と Dir.glob の非互換部分 — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>

山本です。

19 messages 2004/03/13
[#23194] Re: File.fnmatch と Dir.glob の非互換部分 — matz@... (Yukihiro Matsumoto) 2004/03/13

まつもと ゆきひろです

[#23195] Re: File.fnmatch とDir.glob の非互換部分 — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2004/03/14

山本です。

[#23196] Re: File.fnmatch とDir.glob の非互換部分 — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2004/03/14

山本です。

[#23260] Re: File.fnmatch とDir.glob の非互換部分 — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2004/03/30

山本です。

[#23261] Re: File.fnmatch とDir.glob の非互換部分 — matz@... (Yukihiro Matsumoto) 2004/03/30

まつもと ゆきひろです

[#23265] Re: File.fnmatch とDir.glob の非互換部分 — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2004/03/30

山本です。

[#23238] Re: [ruby-cvs] ruby, ruby/lib, ruby/lib/rss, ruby/sample/openssl: * lib/logger.rb: trim tail space of each line. no user visible change. — Kouhei Sutou <kou@...>

須藤です.

10 messages 2004/03/27

[ruby-dev:23088] Re: enable-install-rdoc (was Re: --prefix and DESTDIR for bccwin32)

From: nobu.nakada@...
Date: 2004-03-01 13:30:58 UTC
List: ruby-dev #23088
なかだです。

At Mon, 1 Mar 2004 22:04:29 +0900,
H.Yamamoto wrote in [ruby-dev:23086]:
> E:\>ri Dir
> e:/ruby/lib/ruby/1.9/rdoc/ri/ri_display.rb:215:in `system': No such file or dire
> ctory (Errno::ENOENT)
>  - less C:/DOCUME~1/WHITER~1/LOCALS~1/Temp/ri_936.0     from e:/ruby/lib/ruby/1.
> 9/rdoc/ri/ri_display.rb:215:in `page_output'

最近、コマンドの実行に失敗するとsystemがfalseを返すかわりに例外
を上げるようになったためです。


Index: lib/rdoc/ri/ri_display.rb
===================================================================
RCS file: /cvs/ruby/src/ruby/lib/rdoc/ri/ri_display.rb,v
retrieving revision 1.2
diff -u -2 -p -r1.2 ri_display.rb
--- lib/rdoc/ri/ri_display.rb	12 Jan 2004 03:11:25 -0000	1.2
+++ lib/rdoc/ri/ri_display.rb	1 Mar 2004 13:27:33 -0000
@@ -213,5 +213,8 @@ class  DefaultDisplay
       paged = false
       for pager in [ ENV['PAGER'], "less", "more <", 'pager' ].compact.uniq
-        if system("#{pager} #{path}")
+        begin
+          system("#{pager} #{path}")
+        rescue Errno::ENOENT
+        else
           paged = true
           break


-- 
--- 僕の前にBugはない。
--- 僕の後ろにBugはできる。
    中田 伸悦

In This Thread