title: Bash asterisk omits files that start with '.'?
body: <p>I'm using a bash script to iterate over all files in a directory.  But the loop is skipping over files that begin with a '.' such as '.bashrc'  I'm not sure if .bashrc is failing the file test or is being omitted from the wildcard '*'.  I've tried double quotes around "$item" but same result.  How can I make this loop include .bashrc files?</p>
  
  <pre><code>id=0     
  cd $USERDIR
  for item in *
  do
      if [[ -f $item ]]; then
          cdir[$id]=$item
          id=$(($id+1))
          echo $item
      fi
  done  
  </code></pre>