diff options
author | keiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-21 12:21:11 +0000 |
---|---|---|
committer | keiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-21 12:21:11 +0000 |
commit | 62f061a2cdecba7cf003a7563747d0356f566159 (patch) | |
tree | 0fea1beac9f8e651f0a9cc275796a32a2be94949 /lib/shell/filter.rb | |
parent | 8e4dc2626f597f46261172d27cd2760f0fce688b (diff) |
* lib/shell/*: bug fix for Shell#system(command_line_string).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/shell/filter.rb')
-rw-r--r-- | lib/shell/filter.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/shell/filter.rb b/lib/shell/filter.rb index 4cf793a3b3..27c5534695 100644 --- a/lib/shell/filter.rb +++ b/lib/shell/filter.rb @@ -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 |