fix search terms starting with \d+ in sh/log etc
[spider.git] / cmd / show / rcmd.pl
index d7cbd332a5529a9cd7099e6962f4afdb4a6eb9bf..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;