Subject: bin/2282: subcommands don't work with systat
To: None <gnats-bugs@NetBSD.ORG>
From: None <leo@marco.de>
List: netbsd-bugs
Date: 04/01/1996 11:01:00
>Number: 2282
>Category: bin
>Synopsis: subcommands don't work with systat
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Apr 1 04:35:02 1996
>Last-Modified:
>Originator: Matthias Pfaller
>Organization:
leo@dachau.marco.de in real life: Matthias Pfaller
marco GmbH, 85221 Dachau, Germany tel: +49 8131 516142
>Release: 960328
>Environment:
System: NetBSD klondike 1.1B NetBSD 1.1B (KLONDIKE) #99: Sat Mar 30 00:49:14 MET 1996 leo@klondike:/usr/src/sys/arch/pc532/compile/KLONDIKE pc532
>Description:
From the manpage it looks to me as one should be able to do
something like
$ systat
:vmstat
:run
But systat always responds with "Ambigous command".
>How-To-Repeat:
Do something like
$ systat
:vmstat
:run
>Fix:
With the following patch systat behaves as I would expect it:
--- usr.bin/systat/cmds.c.ORIG Sat Oct 14 04:25:29 1995
+++ usr.bin/systat/cmds.c Sun Mar 31 23:24:47 1996
@@ -170,7 +170,7 @@
nmatches++;
}
}
- if (nmatches != 1)
+ if (nmatches > 1)
return ((struct cmdtab *)-1);
return (found);
}
>Audit-Trail:
>Unformatted: