Ruby Issue Tracking System: Issueshttps://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112010-11-12T12:32:04ZRuby Issue Tracking System
Redmine Ruby master - Feature #4046 (Feedback): Saving C's **argv and cwd allows Ruby programs to reliabl...https://redmine.ruby-lang.org/issues/40462010-11-12T12:32:04Zrocky (Rocky Bernstein)rocky@gnu.org
<p>=begin<br>
In a debugger often one gets to a state where one just wants to restart everything exactly the way the program was previously invoked.</p>
<p>It would helpful if Ruby saved **argv and cwd.</p>
<p>The attached patch saves these in RubyVM::OS_ARGV and RubyVM::OS_STARTUP_DIR. With this,<br>
if a Ruby program wants to restart itself, it can run:</p>
<p>chdir RubyVM::OS_STARTUP_DIR<br>
exec(*RubyVM::OS_ARGV)<br>
=end</p> Ruby master - Bug #3683 (Closed): getgrnam on computer with NIS group (+)?https://redmine.ruby-lang.org/issues/36832010-08-12T07:11:18Zrocky (Rocky Bernstein)rocky@gnu.org
<p>=begin<br>
When I ran "make check" on a computer that has NIS groups, I notice that the ruby-test/test/etc/test_etc.rb fails with this:</p>
<ol>
<li>Error:<br>
test_getgrnam(TestEtc):<br>
ArgumentError: can't find group for +<br>
/src/external-vcs/ruby-test/test/etc/test_etc.rb:86:in <code>getgrnam' /src/external-vcs/ruby-test/test/etc/test_etc.rb:86:in </code>block in test_getgrnam'<br>
/src/external-vcs/ruby-test/test/etc/test_etc.rb:85:in <code>each_value' /src/external-vcs/ruby-test/test/etc/test_etc.rb:85:in </code>test_getgrnam'</li>
</ol>
<p>I guess this is because "+" isn't understood as a NIS group. I'm not sure what you want to do about this, but I thought I'd report it.</p>
<p>At "remedy" might not test when the group name is "+" at the end of the /etc/group file. Or one might want to change to code to handle this situation.<br>
=end</p>