Hi Pádraig,
Pádraig Brady <[email protected]> writes:
> This matches the FreeBSD documentation.
>
> * src/ptx.c (usage): Describe -t, and also mention
> the default width is 72 when not used.
> * doc/coreutils.texi (ptx invocation): Likewise.
> (main): Override the default width if -t is specified.
> * tests/ptx/ptx.pl: Add test cases.
> * NEWS: Mention the change in behavior.
> ---
> NEWS | 2 ++
> doc/coreutils.texi | 6 ++++++
> src/ptx.c | 10 +++++++---
> tests/ptx/ptx.pl | 7 +++++++
> 4 files changed, 22 insertions(+), 3 deletions(-)
The only documentation I could find was for an old FreeBSD version [1].
It looks like it was from a port, since it has the following section:
FILES
/usr/5bin/sort
/usr/ucblib/eign
/usr/ucblib/doctools/tmac/ptx
Searching for those files, I found that it was from the Heirloom Project
[2]:
$ grep -FA2 -- -t heirloom-doctools-080407/ptx/ptx.1
.BR \-t
Prepare the output for the phototypesetter,
i.e. set the default line length to 100 characters.
It seems like FreeBSD doesn't ship with a 'ptx' program, which you can
check on cfarm240.
I guess they used GNU ptx when it was a separate project [3], and
removed it sometime after it was added to textutils [4][5].
I don't mind the new behavior, but you may decide you want to
reconsider. The commit message should probably be adjusted though, since
it wasn't a FreeBSD invention.
Collin
[1]
https://man.freebsd.org/cgi/man.cgi?query=ptx&apropos=0&sektion=1&manpath=FreeBSD+11.2-RELEASE+and+Ports&arch=default&format=html
[2] https://en.wikipedia.org/wiki/Heirloom_Project
[3]
https://github.com/freebsd/freebsd-src/commit/a3f77ca2aba18c68b4865d63c306710a021b4e0a
[4]
https://github.com/freebsd/freebsd-src/commit/fb22fc68e447128452369797fdee47cf29cf2419
[5]
https://github.com/freebsd/freebsd-src/commit/95f435e76a0c5e64be481494a1fc20ca997d1113