1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
aamine 2005-07-27 10:12:08 +00:00
parent b5e891b1ed
commit bff7359065
2 changed files with 6 additions and 1 deletions

View file

@ -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]

View file

@ -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