title: Whiptail Gauge: Variable in loop not being set
body: <p>Am new to bash and whiptail so excuse the ignorance.</p>
  
  <p>When assigning a var in the for loop, the new value of 20 is never set when using a Whiptail dialog.  Any suggestions why ?</p>
  
  <pre><code>andy="10"
  {
      for ((i = 0 ; i &lt;= 100 ; i+=50)); do
          andy="20"
          echo $i
          sleep 1
      done
   } | whiptail --gauge "Please wait" 5 50 0 
  # }
  echo "My val $andy
  </code></pre>