mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
9bfb4dc6ac
commit
8a6eb889e0
2 changed files with 6 additions and 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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue