title: Piping a command directly to the shell executable
body: <p>I am trying to understand the difference between the following</p>
  
  <p>Approach 1: </p>
  
  <ol>
  <li>Launch a bash shell </li>
  <li>On the bash shell type a command <code>my_command myargs</code></li>
  </ol>
  
  <p>Approach 2:</p>
  
  <ol>
  <li>Launch a bash shell</li>
  <li>Execute the following directly <code>my_command myargs | /bin/bash/</code></li>
  </ol>
  
  <p>My command passes in approach 1 but does not in approach 2. I was thinking both approaches were equivalent. Of course in approach 1 I have not done any commands/changed the path variables before doing my_command. In approach 2 I am just creating a brand new shell and piping my command into it.</p>
  
  <p>Can someone explain the difference? Is it missing $PATH, environment variables etc? If so how can I echo/find out?</p>