Improve M$ Windows compatibility
[spider.git] / cmd / show / log.pl
index ec84daa0af781343767cd915409388642756a553..fa8806c21f68554c30b7e6fb64ae85035cd35586 100644 (file)
@@ -27,7 +27,7 @@ sub handle
                        ($to) = $f =~ /^(\d+)$/ if !$to;              # is it a to count?
                        next if $to;
                }
-               unless ($f =~ /^\d+/) {
+               unless ($f =~ /^\d+$/) {
                        $who = $f; 
                        next if $who;
                }
@@ -41,6 +41,6 @@ sub handle
                $who = $self->call;
        }
 
-       return (1, DXLog::print($from, $to, $main::systime, undef, $who)) if $self->{_nospawn};
+       return (1, DXLog::print($from, $to, $main::systime, undef, $who)) if ($self->{_nospawn} || $main::is_win == 1);
        return (1, $self->spawn_cmd("show/log $cmdline", \&DXLog::print, args => [$from, $to, $main::systime, undef, $who]));
 }