title: Bash for loop with wildcards and hidden files
body: <p>Just witting a simple shell script and little confused:</p>
  
  <p>Here is my script:</p>
  
  <pre><code>% for f in $FILES; do echo "Processing $f file.."; done
  </code></pre>
  
  <p>The Command: </p>
  
  <pre><code>ls -la | grep bash 
  </code></pre>
  
  <p>produces:</p>
  
  <pre><code>% ls -a | grep bash
  .bash_from_cshrc
  .bash_history
  .bash_profile
  .bashrc
  </code></pre>
  
  <p>When </p>
  
  <pre><code>FILES=".bash*"
  </code></pre>
  
  <p>I get the same results (different formatting) as ls -a.  However when </p>
  
  <pre><code>FILES="*bash*"
  </code></pre>
  
  <p>I get this output:</p>
  
  <pre><code>Processing *bash* file..
  </code></pre>
  
  <p>This is not the expected output and not what I expect.  Am I not allowed to have a wild card at the beginning of the file name?  Is the . at the beginning of the file name "special" somehow?  </p>
  
  <p>Setting</p>
  
  <pre><code>FILES="bash*"
  </code></pre>
  
  <p>Also does not work.  </p>