lib/shell/command-processor.rb (Shell#[]): prevent unknown command
FileTest.send(command, ...) allows to call not only FileTest-related methods but also any method that belongs to Kernel, Object, etc.
FileTest.send(command, ...)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@67810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
lib/shell/command-processor.rb (Shell#[]): prevent unknown command
FileTest.send(command, ...)
allows to call not only FileTest-relatedmethods but also any method that belongs to Kernel, Object, etc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@67810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e