summaryrefslogtreecommitdiff
path: root/lib/open3.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/open3.rb')
-rw-r--r--lib/open3.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/open3.rb b/lib/open3.rb
index 9e34acffc9..27283f5019 100644
--- a/lib/open3.rb
+++ b/lib/open3.rb
@@ -43,13 +43,12 @@ end
if $0 == __FILE__
a = Open3.popen3("nroff -man")
Thread.start do
- while gets
- a[0].print $_
+ while line = gets
+ a[0].print line
end
a[0].close
end
- while a[1].gets
- print ":", $_
+ while line = a[1].gets
+ print ":", line
end
end
-