Subject: bin/9128: vgrind -t does not work as advertised
To: None <gnats-bugs@gnats.netbsd.org>
From: Jeff Weisberg <jaw@Op.Net>
List: netbsd-bugs
Date: 01/08/2000 04:55:03
>Number:         9128
>Category:       bin
>Synopsis:       vgrind -t does not work as advertised
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan  6 06:39:01 2000
>Last-Modified:
>Originator:     Jeff
>Organization:
OpNet/NetReach Internet - Network Operations Center
>Release:        approx. 2000/Jan/2
>Environment:
System: NetBSD rfc1178.op.net 1.4P NetBSD 1.4P (MICHELANGELO) #8: Thu Dec 30 17:16:08 EST 1999 jaw@rfc1178.op.net:/Net/pisarro/usr/src/NetBSD-current/src/sys/arch/sparc/compile/MICHELANGELO sparc


>Description:
	the vgrind man page documents the "-t" option thusly:
	  > -t  similar to the same option in troff causing formatted text
          >     to go to the standard output

	In reality, it does not. the "-t" is handed to "psroff" (which
	has no man page, but is simple enough to follow reading the source).

	"psroff" then passes this along with a "-l" (among others) to "groff"

	"groff" interprets "-t" as "Preprocess with gtbl" and
	"-l" as "Send the output to a printer..."
	

>How-To-Repeat:
	type:
	    vgrind -t foo.c
	watch output go to printer

>Fix:
	adjust psroff to not pass "-l" to groff

	adjust vgrind to pass "-l" to psroff only if not handed a "-t"

>Audit-Trail:
>Unformatted: