bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug in tr, version 4.5.3


From: Bob Proulx
Subject: Re: bug in tr, version 4.5.3
Date: Mon, 11 Aug 2003 20:16:23 -0600
User-agent: Mutt/1.3.28i

Alwin Leerling wrote:
> I think I might have stumbled on a bug in tr:

Thank you very much for the report.  But I don't think this is a bug.
I think you are using tr incorrectly.

> Command in bash shell:
>       echo fdhrnzvfu bffvsentr | tr [a-z] [n-z][a-m]
> 
> Expected output:
>       squeamish ossifrage
> 
> Output from command
>       squc]kgsf ossigdr]ec

Try this instead:

  echo fdhrnzvfu bffvsentr | tr '[a-z]' '[n-za-m]'

Also remember that brackets are expanded by the shell to match file
names.  Be sure to quote them to prevent that.

Bob




reply via email to

[Prev in Thread] Current Thread [Next in Thread]