title: Bash dialog - checklist options with spaces from a file
body: <p>I try to make a dialog checklist in a bash script. I have to generate options from lines of a file. I think the problem is that my entries contains spaces and so, one entry is considered by many. </p>
  
  <p>Dialog give me this error:</p>
  
  <pre><code>Error: Expected 3 arguments, found only 1. Use --help to list options.
  </code></pre>
  
  <p>Here my code:</p>
  
  <pre><code>while read entry; do
      option+=(0 "$entry" "off")
      echo "$option"
  done &lt; "$tempfilelist"
  
  dialog --backtitle "Myscript"  \
         --title "Mytitle" \
         --checklist "Mytext" 10 70 4 "${option[@]}"
  </code></pre>
  
  <p>I even tried to put quotes in my loop, like this:</p>
  
  <pre><code>"'$entry'"
  </code></pre>
  
  <p>but no change.</p>
  
  <p>and here's my file (tempfilelist):</p>
  
  <pre><code>Wed Apr 24 14:17:20 2013 20130423.maya.txt
  Wed Apr 24 14:17:41 2013 maya.txt
  </code></pre>
  
  <p>How to get this script working?</p>
  
  <p>Thanks !</p>