diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-03 05:22:51 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-03 05:22:51 +0000 |
commit | 2fc40194d2ddc05a481c0eddc8fe9a1c95e23196 (patch) | |
tree | f34c93e28c863cce0574dfd6fc77a22992177e6c /lib/rdoc | |
parent | 46a93a65df6e51c8317cd958d44f21313b5a28ee (diff) | |
download | ruby-2fc40194d2ddc05a481c0eddc8fe9a1c95e23196.tar.gz |
* lib/rdoc/ri/driver.rb (setup_pager): no need to check the existence
of pagers. the following code checks whether they are executable or
not.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc')
-rw-r--r-- | lib/rdoc/ri/driver.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rdoc/ri/driver.rb b/lib/rdoc/ri/driver.rb index 90fbc7c7a2..7ae73a490e 100644 --- a/lib/rdoc/ri/driver.rb +++ b/lib/rdoc/ri/driver.rb @@ -1034,7 +1034,7 @@ Options may also be set in the 'RI' environment variable. pagers = [ENV['RI_PAGER'], ENV['PAGER'], 'pager', 'less', 'more'] pagers.compact.uniq.each do |pager| - next unless File.exist? pager + next unless pager io = IO.popen pager, "w" rescue next |