From e4a87d96a8ff7f37e2e526c923c3cdc0a0439323 Mon Sep 17 00:00:00 2001 From: mame Date: Wed, 29 Mar 2017 11:49:39 +0000 Subject: Fix two typos My typo checker :-) found the bugs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/shell/command-processor.rb | 3 ++- lib/shell/filter.rb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/shell') diff --git a/lib/shell/command-processor.rb b/lib/shell/command-processor.rb index 2239ca98f6..32c461e8b3 100644 --- a/lib/shell/command-processor.rb +++ b/lib/shell/command-processor.rb @@ -54,8 +54,9 @@ class Shell # include run file. # def self.run_config + rc = "~/.rb_shell" begin - load File.expand_path("~/.rb_shell") if ENV.key?("HOME") + load File.expand_path(rc) if ENV.key?("HOME") rescue LoadError, Errno::ENOENT rescue print "load error: #{rc}\n" diff --git a/lib/shell/filter.rb b/lib/shell/filter.rb index 2c3ad40a48..caa976ae3e 100644 --- a/lib/shell/filter.rb +++ b/lib/shell/filter.rb @@ -56,7 +56,7 @@ class Shell #:nodoc: self.input = src self else - Shell.Fail Error::CantApplyMethod, "<", to.class + Shell.Fail Error::CantApplyMethod, "<", src.class end end -- cgit v1.2.3