Audit fold(1)

1) Use num-wording in the manpage, remove offensive remark against
   the beloved -num-syntax <3.
2) Style changes.
3) Report errors of getline.
4) argv-argc-centric argument loop.
5) Rename r to ret for consistency.
This commit is contained in:
FRIGN
2015-03-13 23:47:41 +01:00
parent 3fa85f0f5e
commit 942c3613bc
3 changed files with 34 additions and 32 deletions

15
fold.1
View File

@@ -1,4 +1,4 @@
.Dd March 5, 2015
.Dd March 13, 2015
.Dt FOLD 1
.Os sbase
.Sh NAME
@@ -7,7 +7,7 @@
.Sh SYNOPSIS
.Nm
.Op Fl bs
.Op Fl w Ar width | Fl Ns Ar width
.Op Fl w Ar num | Fl Ns Ar num
.Op Ar file ...
.Sh DESCRIPTION
.Nm
@@ -24,11 +24,10 @@ reads from stdin.
Count bytes rather than characters.
.It Fl s
If a line contains spaces, break
at the last space within
.Ar width .
.It Fl w Ar width | Fl Ns Ar width
at the last space within width.
.It Fl w Ar num | Fl Ns Ar num
Break at
.Ar width
.Ar num
characters. Default is 80.
.El
.Sh STANDARDS
@@ -38,6 +37,6 @@ utility is compliant with the
.St -p1003.1-2008
specification.
.Pp
The obsolete
.Op Fl Ns Ar width
The
.Op Fl Ns Ar num
syntax is an extension to that specification.