title: How can I trigger brace expansion inside a script?
body: <p>I'm writing a script which needs to use the shell's brace expansion, but nothing I've tried works.  For (a contrived) instance, say I have a variable containing the string  </p>
  
  <pre><code>thing{01..02}
  </code></pre>
  
  <p>and I (obviously) want to expand it to  </p>
  
  <pre><code>thing01 thing02  
  </code></pre>
  
  <p>from inside the script, how can I do that?</p>
  
  <p>(For anyone who assumes this is a duplicate of <a href="https://stackoverflow.com/questions/846730/tricky-brace-expansion-in-shell">this other question</a>, please read them more carefully.  That question is regarding working from the shell, not a shell script, and doesn't require the ability to expand arbitrary expressions.)</p>