[Win32utils-devel] [ win32utils-Bugs-23356 ] $?.exitstatus is not set properly

noreply at rubyforge.org noreply at rubyforge.org
Fri Dec 26 21:48:50 EST 2008


Bugs item #23356, was opened at 2008-12-27 03:48
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=411&aid=23356&group_id=85

Category: win32-open3
Group: Code
Status: Open
Resolution: None
Priority: 3
Submitted By: Roman Zawada (zwadar)
Assigned to: Nobody (None)
Summary: $?.exitstatus is not set properly

Initial Comment:
Hi,
this simple code

require "win32/open3"

Open3.popen3("svn info") do |stdin, stdout, stderr|
  puts stdout.read
  puts stderr.read
end
puts "OPEN3: "+ $?.exitstatus.to_s

system("svn info")
puts "SYSTEM: "+ $?.exitstatus.to_s


results in following output

svn: '.' is not a working copy
OPEN3: 0
SYSTEM: 1

Existatuses "generated" by open3 and sytem should be the same. In this case "1", but I'can get from open3 somthing else than 0, so I assume there is a bug. 

Tested on 1.8.6 (vesion from One click installer) and 1.8.7 under WinXP. 

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=411&aid=23356&group_id=85


More information about the win32utils-devel mailing list