bourne shell lower case

sh

Solution

I just tried

MYVAR="This is a Test."
MYVAR=$(echo $MYVAR | tr '[:upper:]' '[:lower:]')
echo $MYVAR

and the result was

this is a test.

Problem

Is there a way to make bourne shell not care about case on string comparisons? alternatively, can I convert a variable to all lowercase? I was trying to use tr with echo, but never could get it to overwrite my variable.

Original source