title: Groovy execute "cp *" shell command
body: <p>I want to copy text files and only text files from <code>src/</code> to <code>dst/</code></p>
  
  <pre>
  groovy:000> "cp src/*.txt dst/".execute().text       
  ===> 
  groovy:000> 
  </pre>
  
  <p>You can see the command executes w/out error but the file <code>src/test.txt</code> does not get copied to <code>dst/</code></p>
  
  <p>This also fails: </p>
  
  <pre>
  groovy:000> "cp src/* dst/".execute().text       
  ===> 
  groovy:000> 
  </pre>
  
  <p>However...</p>
  
  <pre>
  "cp src/this.txt dst/".execute().text
  </pre>
  
  <p>works</p>
  
  <p>Also,</p>
  
  <pre>
  "cp -R src/ dst".execute().text
  </pre>
  
  <p>works</p>
  
  <p>Why dose the wild card seem to cause my command to silently fail?</p>