Subject: bin/2837: su manpage inaccurate
To: None <gnats-bugs@gnats.netbsd.org>
From: William O Ferry <woferry@WarpDrive.RES.CMU.EDU>
List: netbsd-bugs
Date: 10/12/1996 04:01:01
>Number:         2837
>Category:       bin
>Synopsis:       su manpage inaccurate (documented non-option)
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 12 01:05:01 1996
>Last-Modified:
>Originator:     William O Ferry
>Organization:
WarpDrive Internet Solutions
>Release:        1.2
>Environment:
	
System: NetBSD WarpDrive.RES.CMU.EDU 1.2 NetBSD 1.2 (WARPDRIVE) #0: Mon Sep 23 10:10:05 EDT 1996 woferry@WarpDrive.RES.CMU.EDU:/usr/src/sys/arch/i386/compile/WARPDRIVE i386


>Description:
	
	Manpage for su(1) lists the synopsis
"su [-Kflm] [login [shell arguments]]", yet su's usage string says
"usage: su [-flm] [login]", and there does not appear to be code in
/usr/src/usr.bin/su/su.c to handle the [shell arguments] option.  If you try to
use the option, it creates some rather unusual (but consistant) results.

>How-To-Repeat:
	
Warpdrive# su root /bin/csh -f
Unmatched ".
Warpdrive# su root /usr/local/bin/tcsh -f
M^@M^F^A^KM-P^C04M-Z: Command not found.
Failure: Command not found.
Bad: Command not found.
Cannot: Command not found.
crt0:: Too many arguments.

>Fix:
	
	Remove references in manpage, or add options to program (I'd prefer
the latter, but cannot think up the code this early in the morning...  =)  If
I work something up this weekend, I'll add onto the pr.
>Audit-Trail:
>Unformatted: