Date: Fri, 30 Nov 2018 18:12:12 +0700 From: Eugene Grosbein <eugen@freebsd.org> To: Alexey Dokuchaev <danfe@freebsd.org>, Baptiste Daroussin <bapt@freebsd.org> Cc: Steven Hartland <steven.hartland@multiplay.co.uk>, Maxim Sobolev <sobomax@freebsd.org>, src-committers <src-committers@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, Cy Schubert <Cy.Schubert@cschubert.com> Subject: Re: svn: head/usr.bin: . trim Message-ID: <15e4f063-d081-9c38-be3e-44bc622cc50e@freebsd.org> In-Reply-To: <20181130105714.GA84052@FreeBSD.org> References: <20181130011713.42B641D27@spqr.komquats.com> <0e233c0c-6c80-4618-9618-48162362a849@multiplay.co.uk> <20181130084955.o4loxtuswdsvzksy@ivaldir.net> <20181130105714.GA84052@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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? :-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15e4f063-d081-9c38-be3e-44bc622cc50e>