STRSTR BASH

strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}
Tense Tarantula