fix search terms starting with \d+ in sh/log etc
[spider.git] / cmd / show / rcmd.pl
index 7cd02d5de7022f8738145037e649b1571af6a385..df64298b640e161b870ee6fa4fddce16a250ea9f 100644 (file)
@@ -27,7 +27,9 @@ while ($f = shift @f) {                 # next field
                next if $to;
        }
        next if $who;
-       #($who) = $f =~ /^(\w+)/o;
+       if ($f !~ /^\d+$/) {
+               ($who) = $f;
+       }
 }
 
 $to = 20 unless $to;