Commit Graph

32 Commits

Author SHA1 Message Date
ginsbach 1008587cd2 PR/55891 supress displaying separator when numbers supressed
Fix based on patch provided by Kobayashi Takashi. This brings nl(1) further
in to POSIX compliance. Verified behavior with classic SysV nl(1) and GNU
nl(1). There could still be edge cases here not specified by POSIX.
2020-12-31 04:07:37 +00:00
ginsbach 05e6749c39 nl: fix -d delim parsing for POSIX
POSIX specifies it is possible to specify a one delimiter character.
Fix the logic so that both one and two character delimiters are accepted.
2020-12-30 01:42:31 +00:00
ginsbach 332df7ed8f nl(1): remove superfluous exit
Remove exit(3) call missed when errors were converted to errx(3).
2020-12-22 17:50:55 +00:00
wiz 2626dec52e Improve description.
From Jérémie Courrèges-Anglas <jca@wxcvbn.org>.
2013-09-24 22:08:06 +00:00
wiz bcd8a2345c If file argument is '-', read from stdin.
From Jérémie Courrèges-Anglas <jca@wxcvbn.org>.
2013-09-17 20:00:50 +00:00
wiz 2aa10166ef Update standards conformance. From jmc@openbsd. 2013-09-12 07:26:13 +00:00
wiz be79f6c038 Improvements from jmc@openbsd. 2013-09-09 09:02:25 +00:00
christos f675af4a4b PR/47789: Eitan Adler: small nits 2013-05-01 20:53:59 +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
wiz dafcaac4c0 Remove unnecessary quoting. From Abhinav Upadhyay. 2012-01-02 00:35:53 +00:00
christos 855e98819b - document non-literal format string
- use err/errx
- prototypes
2011-08-16 12:00:46 +00:00
lukem fc99e5ea7c Fix -Wextra and -Wsign-compare issues 2009-04-12 23:34:11 +00:00
joerg c094012060 Fix markup 2009-03-11 13:54:05 +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
martin 11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
peter e263dfd62f WFORMAT is no more... 2006-10-08 17:52:28 +00:00
mrg 084c052803 quell GCC 4.1 uninitialised variable warnings.
XXX: we should audit the tree for which old ones are no longer needed
after getting the older compilers out of the tree..
2006-05-10 21:53:14 +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 e3ff4e979b Ispell. Begin new sentences on a new line. 2002-09-26 01:28:22 +00:00
ross 2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
wiz aded0d2cce Whitespace cleanup. 2001-12-01 16:43:07 +00:00
wiz cd08ea4664 Fix typo. 2001-10-19 16:11:57 +00:00
is 135600f947 More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
kleink 4918722a89 For commands and utilities, use EXIT STATUS rather than RETURN VALUES or
DIAGNOSTICS as appropriate (and documented in mdoc(7)).
2000-09-04 07:35:15 +00:00
matt fcd0fb118f Make gcc 2.96 (and maybe earlier) happier. Include <stdlib.h>,<string.>,
etc. as appropriate to get exit,srncmp,abs,abort,etc.
Add -I${.CURDIR} to a few Makefiles
2000-07-03 02:51:12 +00:00
kleink 3b9e70a904 Pasto in previous; noticed by Perry. 1999-09-06 21:50:39 +00:00
kleink 4fe72c2fe5 Use NL_TEXTMAX to size the buffer passed to regerror(). 1999-09-06 09:37:29 +00:00
kleink 6bfc84fa5c Harmless signed/unsigned botch. 1999-04-23 14:43:05 +00:00
mycroft a1c657fe56 Clean up SYNOPSIS formatting. 1999-03-07 11:29:58 +00:00
kleink bbc05bdcb9 Avoid a bogus GCC uninitialized warning; reported by Soren S. Jorvang. 1999-02-16 17:31:25 +00:00
kleink 183022d001 Add an implementation of the XPG4.2 nl(1) utility. 1999-02-15 15:07:14 +00:00