diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-02-25 03:51:23 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-02-25 03:51:23 +0000 |
commit | a4fce2fabf06a1b1f9438148376b35e3dffd3eb5 (patch) | |
tree | 74fe517ce81fe2fccac087b9970e23523517a796 /lib/open3.rb | |
parent | 4d76d718e28965be1835c735ee6ed6ca576e2e3e (diff) | |
download | ruby-a4fce2fabf06a1b1f9438148376b35e3dffd3eb5.tar.gz ruby-a4fce2fabf06a1b1f9438148376b35e3dffd3eb5.tar.xz ruby-a4fce2fabf06a1b1f9438148376b35e3dffd3eb5.zip |
2000-02-25
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/open3.rb')
-rw-r--r-- | lib/open3.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/open3.rb b/lib/open3.rb index 9e34acffc..27283f501 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 - |