diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-23 23:54:57 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-23 23:54:57 +0000 |
commit | 8a6eb889e03a76464af1f42576cf7d9f096433ca (patch) | |
tree | a5977c2a4e5dbc525e2c80817f1c127eb25a0f9e | |
parent | 9bfb4dc6ac6815aa600575c8745870b6ee8f9f91 (diff) | |
download | ruby-8a6eb889e03a76464af1f42576cf7d9f096433ca.tar.gz |
* lib/fileutils.rb (cd): no longer accept :noop option, related code is useless. [ruby-core:05858] [ruby-Bugs:2494]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/fileutils.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Sat Sep 24 08:54:05 2005 Minero Aoki <aamine@loveruby.net> + + * lib/fileutils.rb (cd): no longer accept :noop option, related + code is useless. [ruby-core:05858] [ruby-Bugs:2494] + Sat Sep 24 08:30:00 2005 Tanaka Akira <akr@m17n.org> * lib/pathname.rb (Pathname#sub): new method. diff --git a/lib/fileutils.rb b/lib/fileutils.rb index a2c411f6e3..2d9692c519 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -118,7 +118,7 @@ module FileUtils def cd(dir, options = {}, &block) # :yield: dir fu_check_options options, :verbose fu_output_message "cd #{dir}" if options[:verbose] - Dir.chdir(dir, &block) unless options[:noop] + Dir.chdir(dir, &block) fu_output_message 'cd -' if options[:verbose] and block end module_function :cd |