diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-27 10:12:08 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-27 10:12:08 +0000 |
commit | bff7359065ecc0561ed35a0699d9eec54067685f (patch) | |
tree | 518afb42c393a52f45265b52825a8569a6c5e895 | |
parent | b5e891b1ed96d598b47a3ab33d37ba2f572ec4b7 (diff) | |
download | ruby-bff7359065ecc0561ed35a0699d9eec54067685f.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/fileutils.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Wed Jul 27 19:11:53 2005 Minero Aoki <aamine@loveruby.net> + + * lib/fileutils.rb (cd): follow :noop option change. (This patch + is contributed by Doug Kearns) + Wed Jul 27 16:25:59 2005 Yukihiro Matsumoto <matz@ruby-lang.org> * 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 |