https://bugs.ruby-lang.org/
https://bugs.ruby-lang.org/favicon.ico?1711330511
2009-07-13T21:17:39Z
Ruby Issue Tracking System
Ruby master - Bug #1690: backticks don't set $? in windows
https://bugs.ruby-lang.org/issues/1690?journal_id=4600
2009-07-13T21:17:39Z
yugui (Yuki Sonoda)
yugui@yugui.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Assigned</i></li><li><strong>Assignee</strong> set to <i>usa (Usaku NAKAMURA)</i></li><li><strong>Target version</strong> set to <i>1.9.2</i></li></ul><p>=begin</p>
<p>=end</p>
Ruby master - Bug #1690: backticks don't set $? in windows
https://bugs.ruby-lang.org/issues/1690?journal_id=4620
2009-07-13T22:25:01Z
usa (Usaku NAKAMURA)
usa@garbagecollect.jp
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Rejected</i></li></ul><p>=begin<br>
This is spec.<br>
Ruby doesn't execute any child process in such case on Windows, so, ruby cannot set any status to $?.<br>
=end</p>
Ruby master - Bug #1690: backticks don't set $? in windows
https://bugs.ruby-lang.org/issues/1690?journal_id=4693
2009-07-14T04:46:23Z
rogerdpack (Roger Pack)
rogerpack2005@gmail.com
<ul></ul><p>=begin<br>
That's fine, though surprises me that backticks set $? on linux but not windows.<br>
=r<br>
=end</p>
Ruby master - Bug #1690: backticks don't set $? in windows
https://bugs.ruby-lang.org/issues/1690?journal_id=4694
2009-07-14T06:12:12Z
luislavena (Luis Lavena)
luislavena@gmail.com
<ul></ul><p>=begin<br>
On Mon, Jul 13, 2009 at 4:46 PM, Roger Pack<a href="mailto:redmine@ruby-lang.org" class="email">redmine@ruby-lang.org</a> wrote:</p>
<blockquote>
<p>Issue <a class="issue tracker-1 status-6 priority-4 priority-default closed" title="Bug: backticks don't set $? in windows (Rejected)" href="https://bugs.ruby-lang.org/issues/1690">#1690</a> has been updated by Roger Pack.</p>
<p>That's fine, though surprises me that backticks set $? on linux but not windows.</p>
</blockquote>
<p>Last year we provided a patch for backticks and system to properly<br>
find "rake" instead of "rake.bat" and properly set the exited process<br>
information that was missing.</p>
<p>Is a Windows limitation about the exited process or is Ruby itself<br>
that lacks the tracking of it?</p>
<h2>--<br>
Luis Lavena<br>
AREA 17</h2>
<p>Perfection in design is achieved not when there is nothing more to add,<br>
but rather when there is nothing more to take away.<br>
Antoine de Saint-Exupéry</p>
<p>=end</p>
Ruby master - Bug #1690: backticks don't set $? in windows
https://bugs.ruby-lang.org/issues/1690?journal_id=4696
2009-07-14T09:15:48Z
usa (Usaku NAKAMURA)
usa@garbagecollect.jp
<ul></ul><p>=begin<br>
Hello,</p>
<p>In message "<a href="https://blade.ruby-lang.org/ruby-core/24317">[ruby-core:24317]</a> [Bug <a class="issue tracker-1 status-6 priority-4 priority-default closed" title="Bug: backticks don't set $? in windows (Rejected)" href="https://bugs.ruby-lang.org/issues/1690">#1690</a>] backticks don't set $? in windows"<br>
on Jul.14,2009 04:46:26, <a href="mailto:redmine@ruby-lang.org" class="email">redmine@ruby-lang.org</a> wrote:</p>
<blockquote>
<p>Issue <a class="issue tracker-1 status-6 priority-4 priority-default closed" title="Bug: backticks don't set $? in windows (Rejected)" href="https://bugs.ruby-lang.org/issues/1690">#1690</a> has been updated by Roger Pack.</p>
<p>That's fine, though surprises me that backticks set $? on linux but not windows.</p>
</blockquote>
<p>On Linux, ruby forks itself first, and the child ruby process<br>
executes the target command.<br>
So, if the target command is missing, the child ruby returns<br>
some error status, and the parent ruby gets it.</p>
<p>IMO, in this case, mswin's behavior of $? is better than Linux's.</p>
<a name="Regards"></a>
<h2 >Regards,<a href="#Regards" class="wiki-anchor">¶</a></h2>
<p>U.Nakamura <a href="mailto:usa@garbagecollect.jp" class="email">usa@garbagecollect.jp</a></p>
<p>=end</p>
Ruby master - Bug #1690: backticks don't set $? in windows
https://bugs.ruby-lang.org/issues/1690?journal_id=5381
2009-08-24T13:53:07Z
rogerdpack (Roger Pack)
rogerpack2005@gmail.com
<ul></ul><p>=begin<br>
Perhaps we could at least set<br>
$?<br>
to nil after running system()? [so that it's more obvious that this discrepancy exists]?<br>
=end</p>