title: Is there a subshell created when I run `sh -c "command"`, a new shell or none of these?
body: <p>In bash, when I run the following command:</p>
  
  <pre><code>sh -c "<em>command</em>"</code></pre>
  
  <p>is there created a subshell and then the <code><em>command</em></code> is executed?</p>
  
  <p>My guess is that the command will run in the current shell, but I'm not sure. This guess come from the fact that I already tested using the following commands:</p>
  
  <pre><code>echo $BASHPID, $BASH_SUBSHELL
  </code></pre>
  
  <p>and</p>
  
  <pre><code>sh -c "echo $BASHPID, $BASH_SUBSHELL"
  </code></pre>
  
  <p>and the results are the same. But this could be a little misleading as someone told me because the variables may be substituted before the command is executed. Is this the truth?</p>