I just tested it and, in bash at least, it actually works fine.
echo foo | # echoing foo
tr 'a-z' 'A-Z'
FOO
this is incredible, I had already given up on this, and the solution was in front of my eyes the whole time! You have just greatly enhanced the elegance of several scripts in my lab.