From: matz@... (Yukihiro Matsumoto) Date: 2003-09-09T12:51:19+09:00 Subject: Re: IO#clone and 1.6 -> 1.8 question Hi, In message "IO#clone and 1.6 -> 1.8 question" on 03/09/09, dblack@superlink.net writes: |Just tinkering with IO#clone, in connection with some irc |chatting, and found the following behavior which puzzles |me. Here's the test program: It's combination of the two: * file position is shared among IO clones. It's defined stdio behavior. * IO are buffered so that actual file pointer may advance more than you expected (i.e. entire "num" file was swallowed this case) by a single "gets". matz.