Improve M$ Windows compatibility
[spider.git] / perl / DXCommandmode.pm
index 2c49fabe07cb7422ef8536efb981a5fce5c980c5..46d2b1d38bd4d450f0f95b0fbda2e7b37281f274 100644 (file)
@@ -1379,7 +1379,7 @@ sub spawn_cmd
        no strict 'refs';
 
        # just behave normally if something has set the "one-shot" _nospawn in the channel
-       if ($self->{_nospawn}) {
+       if ($self->{_nospawn} || $main::is_win == 1) {
                eval { @out = $cmdref->(@$args); };
                if ($@) {
                        DXDebug::dbgprintring(25);