From: nobu.nokada@... Date: 2004-02-04T08:30:02+09:00 Subject: Re: rb_io_puts is strange Hi, At Wed, 4 Feb 2004 05:03:20 +0900, Elliott Hughes wrote: > i just tracked down some incorrect behavior (missing newlines in the output) > in a Ruby script to the fact that there's some weird code in IO.puts; if the > string you're writing ends in '\n', puts behaves like print. It's the feature. ---------------------------------------------------------------- IO#puts ios.puts(obj, ...) => nil ------------------------------------------------------------------------ Writes the given objects to _ios_ as with +IO#print+. Writes a record separator (typically a newline) after any that do not ~~~~~~ already end with a newline sequence. If called with an array ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ argument, writes each element on a new line. If called without arguments, outputs a single record separator. -- Nobu Nakada