Re: [PATCH] Add test-tr: poor-man tr
- From
Jeff King <peff@peff.net>
- Date
- Jun 11, 2008, 22:54 UTC
- Message-ID
- <20080611225448.GC19474@sigill.intra.peff.net>
- In-Reply-To
- <20080611182501.GA3344@steel.home>
On Wed, Jun 11, 2008 at 08:25:01PM +0200, Alex Riesen wrote:
Show 10 quoted lines
> It offers a limited set of POSIX tr, in particular: no character class > support and no [n*m] operators. Only 8bit. C-escapes supported, and > character ranges. Deletion and squeezing should work, but -s does not > match the GNU tr from coreutils (which, in turn, does not match POSIX). > > Signed-off-by: Alex Riesen <raa.lkml@gmail.com> > --- > > Rebased on top of current master. I still think it makes the test > suite more portable.
Having wrestled with Solaris tr, I can understand where you are coming from. However, does this _actually_ increase the portability of the test suite? That is, are there failing tests that this fixes, and if so, for which platforms (getting a successful run of the test suite on Solaris is still on my long-term todo, but I thought I had fixed all of the tr issues)?
Or is your rationale "this will prevent people from screwing up the test scripts accidentally in the future"?
I am not opposed to the latter, but I think it makes sense to state it clearly in the commit message.
-Peff