title: Why does the error "find: paths must precede expression" trigger when multiple results are returned from "find"
body: <p>Why  does the error  find: paths must precede expression: input.txt trigger when
  multiple  results are returned from "find" in subprocess but  not when a single result is returned?</p>
  
  <p>The dir contains three files.</p>
  
  <pre><code>ls
  input2.txt  input.txt  input.log 
  </code></pre>
  
  <p>There is only one file matching the find query and the result  can be assigned to $foo      </p>
  
  <pre><code>$ foo=$(find . -name *.log )
  echo $foo
  ./plot.log
  </code></pre>
  
  <p>When  <code>&gt; 1</code>  reults are returned find throw's an error.</p>
  
  <pre><code>$ foo=$(find . -name *.txt )
  find: paths must precede expression: input.txt
  </code></pre>
  
  <p>I don't understand why this is happening.</p>