title: Shellscript with ambiguous redirect error
body: <p>My shellscript is not working:</p>
  
  <pre><code>#!/bin/bash
  LIST="$(ls -rt *.log.*)"
  
  for i in "$LIST"; do
  
  echo $i
  
  mysql --user=&lt;user&gt; --password=&lt;passwd&gt; &lt;database&gt; &lt; $i
  
  done
  </code></pre>
  
  <p>result: <code>./analisys.sh: line 5: $i: ambiguous redirect</code></p>
  
  <p>Can you help me?</p>