From Cream Horse, 3 Months ago, written in Plain Text.
  1. # strcmp is evil!
  2.  
  3. strcmp(){
  4.   for ((i=0;i<"$len";i++)); do
  5.     let "$(printf "cmp=(%d==%d?%d:0)" "'${1:$i:1}" "'${2:$i:1}" "'${2:$i:1}")"
  6.     let t="1%${cmp}" 2>/dev/null || return 1
  7.   done
  8.   return 0
  9. }
captcha