For zsh syntax is slightly different:
> str1='MATCH' > str2='match' > [ "$str1" == "$str2:u" ] && echo 'Match!' Match! >
This will convert str2 to uppercase before comparing.
Additional examples for change below:
> xx=Test > echo $xx:u TEST > echo $xx:l test
smac89 Jul 18 '18 at 0:31 2018-07-18 00:31
source share