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