Subject: Re: fmt utility from NetBSD
To: Hubert Feyrer <>
From: Aleksey Cheusov <>
List: tech-userlevel
Date: 04/17/2006 11:07:24
> On Sun, 16 Apr 2006, Aleksey Cheusov wrote:
 >> /usr/bin/fmt utility seems very old and lacks some useful features.
 >> See OpenBSD fmt (or GNU fmt) for comparison.
 >> P.S.
 >> Should fmt utility be a part of NetBSD base system?

> wl3403% which fmt
> /usr/bin/fmt

> => it *is* part of the base system (I guess that's where OpenBSD got
> theirs from, or at least started from?).
I know. I asked about reasons of placing it to the base system.
Why not pkgsrc? Is there any criteria.

> What exactly is "very old"? Are any of the features you miss required
> by POSIX/SUSv3?
I can't find fmt utility in susv3 at all, I missed something?

I personally think that GNU fmt -s option is useful.
       -s, --split-only
              split long lines, but do not refill
Unfortunately OpenBSD fmt uses -s differently.
-w option in both GNU and OpenBSD version of fmt seems
good to me too. Just because -w may be used to set a width
in all(?) fmt implementations.