Re: 'tr' can't both convert case and do something else and has baderror messages

Jim Meyering <[email protected]> Wed, 08 Jan 2003 09:09:50 +0100
Newsgroups gmane.comp.gnu.textutils.bugs
Message-ID <[email protected]>
Chuck Simmons <[email protected]> wrote:
> bash-2.05a$  tr '[:upper:][:punct:]' '[:lower:][ *]'
> tr: tr.c:2003: main: Assertion `c1 == -1 || truncate_set1' failed.
> Aborted
...

Thanks for the report.
Use `tr --version' to report which version of tr you're using.
I think that bug was fixed in textutils-1.20, and that's pretty old.
Here's a newer major release:

  ftp://ftp.gnu.org/gnu/textutils/textutils-2.1.tar.gz

or you might want to try the latest test release:

  ftp://alpha.gnu.org/gnu/fetish/coreutils-4.5.4.tar.bz2
  (coreutils is the union of fileutils, textutils, and sh-utils)