I am surprised that it still does not work ...
Having trouble saving the value?
If so, you need to:
userInput=$(echo ${userInput} | tr '[:upper:]' '[:lower:]')
But it looks like a mac environment. What results do you get?
Change, add userInput=$()and change it to find out better.
yftse source
share