Commit Graph

43 Commits

Author SHA1 Message Date
ginsbach
fc9b30fdd2 - Fix optional argument options (e, i, n, s) in SYNOPSIS and DESCRIPTION
+ First three take two optional arguments
  + All require no space between option and optional argument(s)
  + Make sure that -e and -i similarly describe optional [char] and [gap]
2012-08-01 02:36:17 +00:00
ginsbach
9b02928106 Minor tweaks to usage:
- Sort options to match pr(1) SYNOPSIS (suggested by wiz)
- Add missing -T timefmt option
2012-08-01 02:27:48 +00:00
wiz
f5baaa3a80 Fix error in SYNOPSIS, sort. 2012-07-27 20:49:48 +00:00
wiz
e9890e4637 New sentence, new line.
Use Aq or Ao/Ac instead of \*[Lt] \*[Gt].
Remove duplicate RCS Id.
2012-07-27 18:28:53 +00:00
ginsbach
aa013a1b5e - Fix PR 19468 by adding -f and -p options to pr(1).
Changes adapted from patch by Ryan Younce and FreeBSD.  The provided
  patch was not used directly as the changes didn't mimic the System V
  origins of these options.  System V pr(1) does not pause for empty files.
  These changes follow that precedent.

- Improve man page description of the -i option.
2012-07-24 02:13:04 +00:00
wiz
1ac719d147 Remove unnecessary Bk/Ek pairs from SYNOPSIS.
No effective change except where I used the opportunity to sort options
and/or option descriptions.
2012-04-08 22:00:37 +00:00
christos
daf2e27602 PR/41880: Ralph G. Previous fix for PR/5797 broke since space separator. 2012-03-12 18:06:24 +00:00
joerg
e7997c0db8 ANSIfy, static + __dead 2011-09-06 18:26:06 +00:00
christos
d27516e895 document non-literal format string. 2011-08-16 12:05:52 +00:00
lukem
e1b4957e7f Fix -Wcast-qual issues 2009-04-13 00:37:05 +00:00
joerg
31ea1ec643 Use semantic markup 2009-03-11 13:57:11 +00:00
lukem
98e5374ccb Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 14:19:20 +00:00
lukem
5a1df86c01 Convert to using raise_default_signal(3). 2007-10-14 11:21:32 +00:00
msaitoh
8ce1f4fff2 fix typos 2007-04-29 20:23:34 +00:00
christos
cd2ccbaf94 Coverity CID 3212: Don't return, goto out in all cases so that cleanup
happens.
2006-05-24 15:59:06 +00:00
christos
a0c086aaf2 Coverity CID 2989: Use the error path to return. 2006-05-01 23:31:10 +00:00
christos
df58c5cd15 Coverity CID 1660: Plug memory leaks. 2006-04-02 04:17:08 +00:00
christos
2296939e9c PR/32402: Jeffrey Bedard: pr filter dumps core with -s option specified,
when -s is specified with no argument. Option arguments in pr (as documented)
need to immediately follow the option. For example to set the separator char
to `.' you need to use "pr -s." instread of "pr -s .". The second form sets
the separator character to tab, and reads from file `.'. Coredumping is wrong
anyway, so fix that. Grr to POSIX for not forcing pr and a few other utilities
to use getopt(3).
cvs: ----------------------------------------------------------------------
2005-12-28 21:29:16 +00:00
agc
ed6ed8e698 Move Keith Muller's code from a 4-clause to a 3-clause licence by removing
the advertising clause. Diffs provided in PR 22397 by Joel Baker, confirmed
to the board by Keith Muller.
2003-10-13 07:41:22 +00:00
agc
89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
wiz
990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
wiz
c640510df0 Correct spelling of "delimiter", and remove from ignored-errors lists. 2002-02-26 02:37:28 +00:00
ross
2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
wiz
a1674ba86e Punctuation nits, drop superfluous .Pps. 2001-12-08 19:10:20 +00:00
wiz
aded0d2cce Whitespace cleanup. 2001-12-01 16:43:07 +00:00
wiz
a9356936b4 seperate -> separate 2001-07-22 13:33:58 +00:00
kleink
9ff4b1c139 Don't be silly and try to read an strftime() format string from the LC_TIME
environment variable; since there isn't a standard format provided by the
C library that corresponds to pr's default header format, add a new option
'-T' to take a strftime() format string if desired.
2000-10-22 15:06:52 +00:00
simonb
fdbafc0681 For the -i option, don't convert a single space before a tab stop to a
tab.  Fixes PR bin/5797 from Todd Vierling.
2000-07-13 02:07:53 +00:00
kristerw
e71aea426d Typos (from OpenBSD) 1999-11-19 22:29:24 +00:00
garbled
9e44e9b578 More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:16:34 +00:00
mycroft
a1c657fe56 Clean up SYNOPSIS formatting. 1999-03-07 11:29:58 +00:00
christos
2136635414 char -> unsigned char 1998-12-19 20:11:20 +00:00
kleink
9629495d5e Need <time.h> for localtime() and strftime() prototypes. 1998-04-02 10:42:51 +00:00
lukem
9b5a69b52c WARNSify, fix .Nm usage, deprecate register 1997-10-19 12:36:23 +00:00
kleink
0505614d4e Fix formatting directives; from SAITOH Masanobu <msaitoh@spa.is.uec.ac.jp>
in PR misc/3795.
1997-06-26 20:23:44 +00:00
tls
0214c17253 RCS ID police 1997-01-09 15:01:32 +00:00
tls
b3f5b3283a Import from 4.4BSD-Lite2 1997-01-09 14:49:43 +00:00
jtc
7bd4220c4e fix typo; PR #1457 1995-09-12 18:47:09 +00:00
jtc
0c6b470863 Remove duplicated word; PR #1194 1995-07-07 22:28:11 +00:00
cgd
ed7cdf533b can't assume that timeval.ts_sec is same type as time_t. grr. 1995-06-07 16:09:53 +00:00
cgd
1675d43043 from John F. Woods <jfw@ksr.com>:
don't crap out if -w specified and not in multi-column mode.
my reading of my draft of P.2 indicates that this is allowed, just
ignored...
1994-03-07 05:42:17 +00:00
cgd
aa8f4ca3f3 add berkeley pr 1994-01-06 15:57:25 +00:00
cgd
c4b27fe2cd add berkeley pr 1994-01-06 15:57:10 +00:00