Hi, On Fri, May 27, 2011 at 22:01, BG - Ben Armstrong <[email protected]> wrote: > So in fact what I have found, using "jruby -e 'p $stdout.sync'" is that in > MRI (1.8.7, 1.9.1 and 1.9.2) $stdout.sync=false, whereas in JRuby (1.6.0) > $stdout.sync=true explaining the difference in behaviour quite tidily.
$stdout.sync just returns true/false as expected. Here's the cause. % jruby -e "p [\$stdin, \$stdout, \$stderr].map(&:sync)" [false, true, true] % ruby193 -e "p [\$stdin, \$stdout, \$stderr].map(&:sync)" [false, false, true] % ruby187 -e "p [\$stdin, \$stdout, \$stderr].map(&:sync)" [false, false, false] These true for STDOUT and STDERR is by 9e049bca (https://github.com/jruby/jruby/commit/9e049bca). Charles, do you remember why you need to add that hacks? Regards, // NaHi --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
