title: bash compare a string vs a list of strings
body: <p>Suppose I have the following code in bash:</p>
  
  <pre><code>#!/bin/bash
  
  bad_fruit=( apple banana kiwi )
  for fname in `ls`
  do
    # want to check if fname contains one of the bad_fruit
    is_bad_fruit=??? # &lt;------- fix this line
    if [ is_bad_fruit ]
    then
      echo "$fname contains bad fruit in its name"
    else
      echo "$fname is ok"
    fi
  done
  </code></pre>
  
  <p><strong>How do I fix is_bad_fruit so that it is true if fname contains one of the bad_fruit strings?</strong></p>