JRuby hangs when exec'ing powershell in Win 7

Hi,

The other day I needed to run powershell from my JRuby script and it
was causing JRuby to hang. Both of the following statements cause
JRuby to hang:

%x[powershell -Command "& {copy-item c:\source_dir c:\dest_dir
-recurse}]
%x[powershell -Command "& {exit}]

system, exec, and ` all make JRuby hang. Fortunately IO.popen was
working with no problem:

f = IO.popen “powershell -Command "& {copy-item c:\source_dir
c:\dest_dir -recurse}"”
f.readlines

Can somebody confirm this bug as I was using JRuby 1.5.1 due to a bug
in 1.5.3 and at the moment I don’t have access to Win 7 64-bit / Java
1.6.

Regards,
Behrang S.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email