From bff7359065ecc0561ed35a0699d9eec54067685f Mon Sep 17 00:00:00 2001 From: aamine Date: Wed, 27 Jul 2005 10:12:08 +0000 Subject: [PATCH] * lib/fileutils.rb (cd): follow :noop option change. (This patch is contributed by Doug Kearns) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/fileutils.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 22cf29ddae..2f70e13877 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Jul 27 19:11:53 2005 Minero Aoki + + * lib/fileutils.rb (cd): follow :noop option change. (This patch + is contributed by Doug Kearns) + Wed Jul 27 16:25:59 2005 Yukihiro Matsumoto * parse.y (lambda): Perl6 style -> lambda expression. [NEW] diff --git a/lib/fileutils.rb b/lib/fileutils.rb index 8bfb90f00a..be74ad30b5 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -113,7 +113,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