Forum: Ruby Tempfile.new("foo") --> /tmp/foo123.0 *NOT* /tmp/foo.123.0 l

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
48124635945b45221ba12a26371f9e3e?d=identicon&s=25 Philip Hallstrom (Guest)
on 2006-06-07 07:12
(Received via mailing list)
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
0ec4920185b657a03edf01fff96b4e9b?d=identicon&s=25 Yukihiro Matsumoto (Guest)
on 2006-06-07 09:23
(Received via mailing list)
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.
This topic is locked and can not be replied to.