Tempfile.new("foo") --> /tmp/foo123.0 *NOT* /tmp/foo.123.0 like docs says

Hi all -

Just noticed that the documentation for Tempfile.new says:

   Creates a temporary file of mode 0600 in the temporary directory whose
   name is basename.pid.n ....

But it's actually basenamepid.n. Line 70 of tempfile.rb says:

   sprintf('%s%d.%d', basename, $$, n)

Who and where should I let know about this?

Thanks!

-philip

Hi,

···

In message "Re: Tempfile.new("foo") --> /tmp/foo123.0 *NOT* /tmp/foo.123.0 like docs says..." on Wed, 7 Jun 2006 14:09:04 +0900, Philip Hallstrom <ruby@philip.pjkh.com> writes:

Just noticed that the documentation for Tempfile.new says:

  Creates a temporary file of mode 0600 in the temporary directory whose
  name is basename.pid.n ....

But it's actually basenamepid.n. Line 70 of tempfile.rb says:

  sprintf('%s%d.%d', basename, $$, n)

Hmm, it's a documentation error. Thank you for the report.

              matz.