Hello,

In message "[ruby-core:24317] [Bug #1690] backticks don't set $? in windows"
    on Jul.14,2009 04:46:26, <redmine / ruby-lang.org> wrote:
> Issue #1690 has been updated by Roger Pack.
> 
> That's fine, though surprises me that backticks set $? on linux but not windows.

On Linux, ruby forks itself first, and the child ruby process
executes the target command.
So, if the target command is missing, the child ruby returns
some error status, and the parent ruby gets it.

IMO, in this case, mswin's behavior of $? is better than Linux's.


Regards,
-- 
U.Nakamura <usa / garbagecollect.jp>