Subject: bin/10596: systat(1) command selection is bunched
To: None <gnats-bugs@gnats.netbsd.org>
From: Andy Doran <ad@nbwww.isc.org>
List: netbsd-bugs
Date: 07/17/2000 18:59:32
>Number:         10596
>Category:       bin
>Synopsis:       systat(1) command selection is bunched
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 15 07:43:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Andy Doran
>Release:        NetBSD-1.5
>Organization:
Fruit Loops, Intl.
>Environment:
	Darkened room.
>Description:
	systat(1)'s command() uses strstr() to match commands. This is wrong.
>How-To-Repeat:
	Run systat(1). Use partial command names.
>Fix:
	command() should scan strings from the left, and choose
	whichever has the highest # of matching characters. Conflict
	resolution should be obvious.

>Release-Note:
>Audit-Trail:
>Unformatted: