title: How to use Bash extended pattern to match files from the current directory and from one of the subdirectories
body: <p>For example, the following directory structure:</p>
  
  <pre><code>$ tree
  .
  ├── app.js
  ├── lib
  │   └── util.js
  └── test
      └── main.js
  
  2 directories, 3 files
  </code></pre>
  
  <p>I would like to match js files from the current directory and <code>lib/</code> directory, sort of like:</p>
  
  <pre><code>$ ls *.js lib/*.js
  app.js  lib/util.js
  </code></pre>
  
  <p>but in a single glob. And this does not do it:</p>
  
  <pre><code>ls @(.|lib)/*.js
  </code></pre>
  
  <p>any ideas?</p>