On 05/01/2026 23:16, Collin Funk wrote:
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.


Oh right. I was just going by: https://man.freebsd.org/cgi/man.cgi?query=ptx
I'll keep the implementation but adjust the message.

cheers,
Padraig

Reply via email to