1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/shell/*: bug fix for Shell#system(command_line_string).

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
keiju 2004-03-21 12:21:11 +00:00
parent b9c8bcafdc
commit 06d1cbb926
4 changed files with 20 additions and 9 deletions

View file

@ -18,7 +18,6 @@ class Shell
#
class Filter
include Enumerable
include Error
def initialize(sh)
@shell = sh # parent shell
@ -47,7 +46,7 @@ class Shell
self.input = src
self
else
Filter.Fail CantApplyMethod, "<", to.class
Shell.Fail Error::CantApplyMethod, "<", to.class
end
end
@ -63,7 +62,7 @@ class Shell
when IO
each(){|l| to << l}
else
Filter.Fail CantApplyMethod, ">", to.class
Shell.Fail Error::CantApplyMethod, ">", to.class
end
self
end
@ -72,7 +71,7 @@ class Shell
begin
Shell.cd(@shell.pwd).append(to, self)
rescue CantApplyMethod
Shell.Fail CantApplyMethod, ">>", to.class
Shell.Fail Error::CantApplyMethod, ">>", to.class
end
end