title: pass results from find to a custom bash function?
body: <p>I have a custom bash test function</p>
  
  <pre><code>main () {
      list=$1
      for i in ${list}; do
          echo $i
      done
  }
  </code></pre>
  
  <p>which I am trying to call as:</p>
  
  <pre><code>main `find . -name hello` 
  </code></pre>
  
  <p>but it is only echoing the first file passed in the list. The original output of <code>find . -name hello</code> is</p>
  
  <pre><code>./world1/hello
  ./world2/hello
  ./world3/hello
  ./world4/hello
  ./world5/hello
  ./world6/hello
  ./world7/hello
  ./world8/hello
  </code></pre>
  
  <p>How can I make sure the whole list is passed?</p>
  
  <p>Thanks!</p>