Improve M$ Windows compatibility
[spider.git] / cmd / show / dx.pl
index a2c81a17055174b7bf952bce35f744d5859c4269..a7ee33d5e1062f5b5651a12be4df7cf5eb29ab36 100644 (file)
@@ -41,6 +41,8 @@ sub handle
 
        
        dbg("sh/dx list: " . join(" ", @list)) if isdbg('sh/dx');
+
+#      $DB::single=1;
        
        while (@list) { # next field
                $f = shift @list;
@@ -162,7 +164,7 @@ sub handle
   
        # now do the search
 
-       if ($self->{_nospawn} || ($Spot::spotcachedays && !$expr && $from == 0 && $fromday == 0 && $today == 0)) {
+       if (($self->{_nospawn} || $main::is_win == 1) || ($Spot::spotcachedays && !$expr && $from == 0 && $fromday == 0 && $today == 0)) {
                my @res = Spot::search($expr, $fromday, $today, $from, $to, $user, $dofilter, $self);
                my $ref;
                my @dx;