зеркало из https://github.com/github/ruby.git
* 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:
Родитель
b5e891b1ed
Коммит
bff7359065
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче