Project

General

Profile

Bug #6585

Fix command exit code handling under Ruby 1.9+

Added by Dominic Cleal over 6 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

The exit codes from executed commands aren't retrieved properly, this can be fixed for Ruby 1.9+.

Associated revisions

Revision bbafbc03 (diff)
Added by Aaron Stone over 6 years ago

fixes #6585 - Update Proxy::Util::CommandTask to handle Ruby 1.8 and 1.9+

In this update, use 'true' and 'false' to test $? return codes 0 and 1, respectively.
In Ruby 1.8.x, the return code from Open3.popen3 is always 0, some errors will not be caught.

History

#1 Updated by Aaron Stone over 6 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

#2 Updated by Dominic Cleal over 6 years ago

  • Assignee set to Aaron Stone

Also available in: Atom PDF