svn: head/usr.bin: . trim

Eugene Grosbein eugen at freebsd.org
Fri Nov 30 11:12:33 UTC 2018


30.11.2018 17:57, Alexey Dokuchaev wrote:

> On Fri, Nov 30, 2018 at 09:49:55AM +0100, Baptiste Daroussin wrote:
>> On Fri, Nov 30, 2018 at 08:31:17AM +0000, Steven Hartland wrote:
>>> Personally I disagree, chances of people finding that option in dd
>>> is slim, a dedicated trim utility makes much more sense to me. Sure
>>> have both that's cool but keep the trim would be my vote.
> 
> Having both is OK when there's no code duplication involved (e.g. like
> hd(1) being a handy hardlink to hexdump(1)), yet again...
> 
>> I also like the idea of a simple dedicated tool with an obvious name.
> 
> ... "Obvious" names can cut both ways.  They can be too generic and thus
> create a clash in the future.  They can be ambiguous ("trim" can just as
> easily be a tool that excessive whitespace from text files).

In theory, it can. In practice, it did not for 25 years of FreeBSD existence
despite of whitespace processing being much more generic task.

Maybe that's because we already have "fmt -s" since 3BSD to do that? :-)



More information about the svn-src-head mailing list