From dom@phmit.demon.co.uk  Tue Sep  8 03:20:21 1998
Received: from phmit.demon.co.uk (phmit.demon.co.uk [194.222.15.209])
          by hub.freebsd.org (8.8.8/8.8.8) with SMTP id DAA03892
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 8 Sep 1998 03:20:18 -0700 (PDT)
          (envelope-from dom@phmit.demon.co.uk)
Received: from voodoo.pandhm.co.uk [192.15.143.228] 
	by phmit.demon.co.uk with esmtp (Exim 1.82 #1)
	id 0zGKuf-0001GX-00; Tue, 8 Sep 1998 11:22:17 +0100
Received: from dom by voodoo.pandhm.co.uk with local (Exim 1.92 #1)
	for FreeBSD-gnats-submit@freebsd.org
	id 0zGKtz-00026F-00; Tue, 8 Sep 1998 11:21:35 +0100
Message-Id: <E0zGKtz-00026F-00@voodoo.pandhm.co.uk>
Date: Tue, 8 Sep 1998 11:21:35 +0100
From: Dom Mitchell <dom@phmit.demon.co.uk>
Reply-To: dom@phmit.demon.co.uk
To: FreeBSD-gnats-submit@freebsd.org
Subject: Extra option to pr(1).
X-Send-Pr-Version: 3.2

>Number:         7860
>Category:       bin
>Synopsis:       Extra option to pr(1).
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gad
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep  8 03:30:00 PDT 1998
>Closed-Date:    Wed Mar 27 09:44:50 PST 2002
>Last-Modified:  Wed Mar 27 09:44:50 PST 2002
>Originator:     Dom Mitchell
>Release:        FreeBSD 2.2.7-STABLE i386
>Organization:
Palmer & Harvey McLane Ltd.
>Environment:

FreeBSD voodoo.pandhm.co.uk 2.2.7-STABLE FreeBSD 2.2.7-STABLE #0: Fri Aug 28 09:05:54 BST 1998     root@voodoo.pandhm.co.uk:/usr/src/sys/compile/VOODOO  i386

Running Xemacs 20.4.

Surrounded by Solaris.  :-)

>Description:

Trying to print things out from Xemacs using the "print-buffer"
function, calls "pr -f | lpr".  Our pr does not support the -f option.
However, looking at a nearby Solaris manual page, it would appear the
the (FreeBSD pr) -F option is identical to the (Solaris pr) -f option.
I include a patch below to make them synonyms for each other, for better
interoperability.

>How-To-Repeat:

% pr -f /etc/rc

>Fix:
	
Apply this patch: (NB: I'm not sure whether this is the right change for
the manual.  Please correct me if I'm wrong.)

diff -urP /usr/src/usr.bin/pr/pr.1 pr/pr.1
--- /usr/src/usr.bin/pr/pr.1	Tue Aug  5 07:31:54 1997
+++ pr/pr.1	Tue Sep  8 11:16:02 1998
@@ -182,6 +182,7 @@
 .Ar char ,
 is specified, it is used as the input tab character.
 .It Fl F
+.It Fl f
 Use a
 .Em <form-feed>
 character for new pages,
diff -urP /usr/src/usr.bin/pr/pr.c pr/pr.c
--- /usr/src/usr.bin/pr/pr.c	Sat Jul 18 00:26:55 1998
+++ pr/pr.c	Tue Sep  8 11:13:16 1998
@@ -1589,7 +1589,7 @@
 		}
 	} else
 		err = stderr;
-	while ((c = egetopt(argc, argv, "#adFmrte?h:i?l:n?o:s?w:")) != -1) {
+	while ((c = egetopt(argc, argv, "#adFfmrte?h:i?l:n?o:s?w:")) != -1) {
 		switch (c) {
 		case '+':
 			if ((pgnm = atoi(eoptarg)) < 1) {
@@ -1634,6 +1634,7 @@
 				ingap = INGAP;
 			break;
 		case 'F':
+		case 'f':
 			++formfeed;
 			break;
 		case 'h':

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->gad 
Responsible-Changed-By: gad 
Responsible-Changed-When: Thu May 24 16:59:42 PDT 2001 
Responsible-Changed-Why:  
Looking at my copy of SingleUnixSpec, the 'pr -f' option is not quite exactly 
the same as the 'pr -F' option.  It does seem reasonable to support -f, and 
I'll put this on my list of things to look into. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=7860 
State-Changed-From-To: open->closed 
State-Changed-By: jmallett 
State-Changed-When: Wed Mar 27 09:44:14 PST 2002 
State-Changed-Why:  
Superceded by PR 36243. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=7860 
>Unformatted:
