Date: Tue, 8 Sep 1998 11:21:35 +0100 From: Dom Mitchell <dom@phmit.demon.co.uk> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/7860: Extra option to pr(1). Message-ID: <E0zGKtz-00026F-00@voodoo.pandhm.co.uk>
next in thread | raw e-mail | index | archive | help
>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 <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':
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E0zGKtz-00026F-00>
