From owner-freebsd-bugs Tue Sep 8 03:30:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA04670 for freebsd-bugs-outgoing; Tue, 8 Sep 1998 03:30:07 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA04644 for ; Tue, 8 Sep 1998 03:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id DAA24306; Tue, 8 Sep 1998 03:30:01 -0700 (PDT) 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 ; 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: Date: Tue, 8 Sep 1998 11:21:35 +0100 From: Dom Mitchell Reply-To: dom@phmit.demon.co.uk To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/7860: Extra option to pr(1). Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 7860 >Category: bin >Synopsis: Extra option to pr(1). >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Sep 8 03:30:00 PDT 1998 >Last-Modified: >Originator: Dom Mitchell >Organization: Palmer & Harvey McLane Ltd. >Release: FreeBSD 2.2.7-STABLE i386 >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 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': >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message