lib/rbbt/util/cmd.rb in rbbt-util-5.5.49 vs lib/rbbt/util/cmd.rb in rbbt-util-5.5.50
- old
+ new
@@ -65,16 +65,15 @@
original_close unless self.closed?
end
def read(*args)
- data = original_read(*args)
+ data = original_read(*args) unless self.eof?
self.close if self.eof?
data
end
-
end
def self.process_cmd_options(options = {})
string = ""