aboutsummaryrefslogtreecommitdiffstats
path: root/lib/shell
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-29 11:49:39 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-29 11:49:39 +0000
commite4a87d96a8ff7f37e2e526c923c3cdc0a0439323 (patch)
treec19beada0416f72b6b8a1945dc35554a3b18e6b7 /lib/shell
parent4f542070b41b1a1775e73714614e51be1e922b46 (diff)
downloadruby-e4a87d96a8ff7f37e2e526c923c3cdc0a0439323.tar.gz
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
Diffstat (limited to 'lib/shell')
-rw-r--r--lib/shell/command-processor.rb3
-rw-r--r--lib/shell/filter.rb2
2 files changed, 3 insertions, 2 deletions
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