title: How to execute aliased command in a subshell
body: <p>I have an alias in my ~/.bashrc file</p>
  
  <pre><code>alias gw="some_command"
  </code></pre>
  
  <p>and I want to be able to execute <code>gw</code> in a subshell like this:</p>
  
  <pre><code>echo $(gw arg1 arg2 ...)
  </code></pre>
  
  <p>Is there a way to do this? Or a workaround of some sort? I've tried different things but nothing is working out so far. </p>